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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEnabled(boolean enabled) Sets whether the build cache is enabled.voidsetPush(boolean push) Sets whether a given build can store outputs in the build cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.caching.configuration.BuildCache
getEnabled, getIsEnabled, getIsPush, getPush
-
Constructor Details
-
AbstractBuildCache
public AbstractBuildCache()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:BuildCacheSets whether the build cache is enabled.- Specified by:
setEnabledin interfaceBuildCache
-
setPush
public void setPush(boolean push) Description copied from interface:BuildCacheSets whether a given build can store outputs in the build cache.- Specified by:
setPushin interfaceBuildCache
-