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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the directory to use to store the build cache.intDeprecated.voidsetDirectory(Object directory) Sets the directory to use to store the build cache.voidsetRemoveUnusedEntriesAfterDays(int removeUnusedEntriesAfterDays) Deprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysMethods inherited from class org.gradle.caching.configuration.AbstractBuildCacheisEnabled, isPush, setEnabled, setPush
- 
Constructor Details- 
DirectoryBuildCachepublic DirectoryBuildCache()
 
- 
- 
Method Details- 
getDirectoryReturns the directory to use to store the build cache.
- 
setDirectorySets the directory to use to store the build cache. The directory is evaluated as perProject.file(Object).
- 
getRemoveUnusedEntriesAfterDaysDeprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysReturns the number of days after unused entries are garbage collected. Defaults to 7 days.- Since:
- 4.6
 
- 
setRemoveUnusedEntriesAfterDaysDeprecated.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysSets 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