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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the build cache is enabled.boolean
isPush()
Returns whether pushing to the build cache is enabled.void
setEnabled
(boolean enabled) Enables or disables the build cache service.void
setPush
(boolean push) Sets whether pushing to the build cache is enabled.
-
Constructor Details
-
AbstractBuildCache
public AbstractBuildCache()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether the build cache is enabled.- Specified by:
isEnabled
in interfaceBuildCache
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables the build cache service.- Specified by:
setEnabled
in interfaceBuildCache
-
isPush
public boolean isPush()Returns whether pushing to the build cache is enabled.- Specified by:
isPush
in interfaceBuildCache
-
setPush
public void setPush(boolean push) Sets whether pushing to the build cache is enabled.- Specified by:
setPush
in interfaceBuildCache
-