# CacheConfigurations

@Incubating
interface CacheConfigurations(source)

Configures caches stored in the user home directory. Note that these values can be read at any time, but can only be configured via an init script, ideally stored in the init.d directory in the user home directory.

#### Since

8.0

## Functions

buildCache
Link copied to clipboard
abstract fun buildCache(cacheConfiguration: Action<in CacheResourceConfiguration>)
Configures caching for entries in the local build cache.
createdResources
Link copied to clipboard
abstract fun createdResources(cacheConfiguration: Action<in CacheResourceConfiguration>)
Configures caching for resources that are created by Gradle during the course of a build.
downloadedResources
Link copied to clipboard
abstract fun downloadedResources(cacheConfiguration: Action<in CacheResourceConfiguration>)
Configures caching for resources that are downloaded during Gradle builds.
getBuildCache
Link copied to clipboard
abstract fun getBuildCache(): CacheResourceConfiguration
Returns the cache configuration for local build cache.
getCleanup
Link copied to clipboard
abstract fun getCleanup(): Property<Cleanup>
Returns the cache cleanup settings that apply to all caches.
getCreatedResources
Link copied to clipboard
abstract fun getCreatedResources(): CacheResourceConfiguration
Returns the cache configuration for created resources.
getDownloadedResources
Link copied to clipboard
abstract fun getDownloadedResources(): CacheResourceConfiguration
Returns the cache configuration for downloaded resources.
getMarkingStrategy
Link copied to clipboard
abstract fun getMarkingStrategy(): Property<MarkingStrategy>
Configures how caches should be marked, if at all.
getReleasedWrappers
Link copied to clipboard
abstract fun getReleasedWrappers(): CacheResourceConfiguration
Returns the cache configuration for wrapper distributions that are released Gradle versions.
getSnapshotWrappers
Link copied to clipboard
abstract fun getSnapshotWrappers(): CacheResourceConfiguration
Returns the cache configuration for wrapper distributions that are released Gradle versions.
releasedWrappers
Link copied to clipboard
abstract fun releasedWrappers(cacheConfiguration: Action<in CacheResourceConfiguration>)
Configures caching for wrapper distributions that are released Gradle versions.
snapshotWrappers
Link copied to clipboard
abstract fun snapshotWrappers(cacheConfiguration: Action<in CacheResourceConfiguration>)
Configures caching for wrapper distributions that are snapshot Gradle versions.