Package org.gradle.caching.configuration
Class AbstractBuildCache
java.lang.Object
org.gradle.caching.configuration.AbstractBuildCache
- All Implemented Interfaces:
- BuildCache
- Direct Known Subclasses:
- DirectoryBuildCache,- HttpBuildCache
Base implementation for build cache service configuration.
- Since:
- 3.5
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns whether the build cache is enabled.booleanisPush()Returns whether a given build can store outputs in the build cache.voidsetEnabled(boolean enabled) Sets whether the build cache is enabled.voidsetPush(boolean push) Sets whether a given build can store outputs in the build cache.
- 
Constructor Details- 
AbstractBuildCachepublic AbstractBuildCache()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Returns whether the build cache is enabled.- Specified by:
- isEnabledin interface- BuildCache
 
- 
setEnabledpublic void setEnabled(boolean enabled) Sets whether the build cache is enabled.- Specified by:
- setEnabledin interface- BuildCache
 
- 
isPushpublic boolean isPush()Returns whether a given build can store outputs in the build cache.- Specified by:
- isPushin interface- BuildCache
 
- 
setPushpublic void setPush(boolean push) Sets whether a given build can store outputs in the build cache.- Specified by:
- setPushin interface- BuildCache
 
 
-