For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.caching.configuration
/
AbstractBuildCache
Abstract
Build
Cache
API
abstract
class
AbstractBuildCache
:
BuildCache
(
source
)
Base implementation for build cache service configuration.
Since
3.5
Inheritors
DirectoryBuildCache
HttpBuildCache
Members
Constructors
Abstract
Build
Cache
Link copied to clipboard
API
constructor
(
)
Functions
is
Enabled
Link copied to clipboard
API
open
fun
isEnabled
(
)
:
Boolean
Returns whether the build cache is enabled.
is
Push
Link copied to clipboard
API
open
fun
isPush
(
)
:
Boolean
Returns whether a given build can store outputs in the build cache.
set
Enabled
Link copied to clipboard
API
open
fun
setEnabled
(
enabled
:
Boolean
)
Sets whether the build cache is enabled.
set
Push
Link copied to clipboard
API
open
fun
setPush
(
push
:
Boolean
)
Sets whether a given build can store outputs in the build cache.