# DirectoryBuildCache

abstract class DirectoryBuildCache : AbstractBuildCache(source)

Configuration object for the local directory build cache.

#### Since

3.5

## Constructors

DirectoryBuildCache
Link copied to clipboard
constructor()

## Functions

getDirectory
Link copied to clipboard
@Optional
abstract fun getDirectory(): DirectoryProperty
The directory to use to store the build cache.
getEnabled
Link copied to clipboard
abstract fun getEnabled(): Property<Boolean>
Controls whether the build cache is enabled.
getIsEnabled
Link copied to clipboard
@ReplacedBy(value = "getEnabled()")
open fun getIsEnabled(): Property<Boolean>
Controls whether the build cache is enabled.
getIsPush
Link copied to clipboard
@ReplacedBy(value = "getPush()")
open fun getIsPush(): Property<Boolean>
Controls whether a given build can store outputs in the build cache.
getPush
Link copied to clipboard
abstract fun getPush(): Property<Boolean>
Controls whether a given build can store outputs in the build cache.
setDirectory
Link copied to clipboard
open fun setDirectory(@Nullable directory: @Nullable Any)
Sets the directory to use to store the build cache.
setEnabled
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Sets whether the build cache is enabled.
setPush
Link copied to clipboard
open fun setPush(push: Boolean)
Sets whether a given build can store outputs in the build cache.