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.

MapBasedBuildCacheService

Simple build cache implementation that delegates to a ConcurrentMap.

Since

3.5

Constructors

Link copied to clipboard
constructor(delegate: ConcurrentMap<String, Array<Byte>>)
Creates a new MapBasedBuildCacheService.

Functions

Link copied to clipboard
abstract fun close()

open fun close()
Clean up any resources held by the cache once it's not used anymore.
Link copied to clipboard
Load the cached entry corresponding to the given cache key.
Link copied to clipboard
open fun store(key: BuildCacheKey, output: BuildCacheEntryWriter)
Store the cache entry with the given cache key.