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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the directory to use to store the build cache.int
Deprecated.void
setDirectory
(Object directory) Sets the directory to use to store the build cache.void
setRemoveUnusedEntriesAfterDays
(int removeUnusedEntriesAfterDays) Deprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDays
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)
. -
getRemoveUnusedEntriesAfterDays
Deprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDays
Returns the number of days after unused entries are garbage collected. Defaults to 7 days.- Since:
- 4.6
-
setRemoveUnusedEntriesAfterDays
Deprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDays
Sets the number of days after unused entries are garbage collected. Defaults to 7 days. Must be greater than 1.- Since:
- 4.6
-
CacheConfigurations.buildCache.removeUnusedEntriesAfterDays