api / org.gradle.caching.configuration / BuildCache

BuildCache

interface BuildCache

Configuration object for a build cache.

Since
3.5

Functions

isEnabled

abstract fun isEnabled(): Boolean

Returns whether the build cache is enabled.

isPush

abstract fun isPush(): Boolean

Returns whether a given build can store outputs in the build cache.

setEnabled

abstract fun setEnabled(enabled: Boolean): Unit

Sets whether the build cache is enabled.

setPush

abstract fun setPush(enabled: Boolean): Unit

Sets whether a given build can store outputs in the build cache.

Inheritors

AbstractBuildCache

abstract class AbstractBuildCache : BuildCache

Base implementation for build cache service configuration.