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.

registerBuildCacheService

abstract fun <T : BuildCache?> registerBuildCacheService(configurationType: Class<T>, buildCacheServiceFactoryType: Class<out BuildCacheServiceFactory<in T>>)(source)

Registers a custom build cache type.

Since

3.5

Parameters

configurationType

Configuration type used to provide parameters to a org.gradle.caching.BuildCacheService

buildCacheServiceFactoryType

Implementation type of BuildCacheServiceFactory that is used to create a BuildCacheService