BuildCache (Gradle API 8.14) (original) (raw)

All Known Implementing Classes:

[AbstractBuildCache](AbstractBuildCache.html "class in org.gradle.caching.configuration"), [DirectoryBuildCache](../local/DirectoryBuildCache.html "class in org.gradle.caching.local"), [HttpBuildCache](../http/HttpBuildCache.html "class in org.gradle.caching.http")


public interface BuildCache

Configuration object for a build cache.

Since:

3.5

boolean
[isEnabled](#isEnabled%28%29)()
Returns whether the build cache is enabled.
boolean
[isPush](#isPush%28%29)()
Returns whether a given build can store outputs in the build cache.
void
[setEnabled](#setEnabled%28boolean%29)(boolean enabled)
Sets whether the build cache is enabled.
void
[setPush](#setPush%28boolean%29)(boolean enabled)
Sets whether a given build can store outputs in the build cache.