Package org.gradle.caching.local
Class DirectoryBuildCache
java.lang.Object
org.gradle.caching.configuration.AbstractBuildCache
org.gradle.caching.local.DirectoryBuildCache
- All Implemented Interfaces:
BuildCache
Configuration object for the local directory build cache.
- Since:
- 3.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the directory to use to store the build cache.long
The target size of the build cache in megabytes.void
setDirectory
(Object directory) Sets the directory to use to store the build cache.void
setTargetSizeInMB
(long targetSizeInMB) The target size of the build cache in megabytes.Methods inherited from class org.gradle.caching.configuration.AbstractBuildCache
isEnabled, isPush, setEnabled, setPush
-
Constructor Details
-
DirectoryBuildCache
public DirectoryBuildCache()
-
-
Method Details
-
getDirectory
Returns the directory to use to store the build cache. -
setDirectory
Sets the directory to use to store the build cache. The directory is evaluated as perProject.file(Object)
. -
getTargetSizeInMB
public long getTargetSizeInMB()The target size of the build cache in megabytes. Defaults to 5 GB.Must be greater than or equal to 1, although larger cache sizes will be more useful.
- Since:
- 4.0
-
setTargetSizeInMB
public void setTargetSizeInMB(long targetSizeInMB) The target size of the build cache in megabytes. Defaults to 5 GB.Must be greater than or equal to 1, although larger cache sizes will be more useful.
- Since:
- 4.0
-