gradle
8.4

# registerBuildCacheService

inline fun <T : BuildCache> BuildCacheConfiguration.registerBuildCacheService(buildCacheServiceFactoryType: KClass<out BuildCacheServiceFactory<in T>>)(source)

Registers a custom build cache type.

#### Parameters

T

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

buildCacheServiceFactoryType

Implementation type of BuildCacheServiceFactory that is used to create a org.gradle.caching.BuildCacheService

#### See also

BuildCacheConfiguration.registerBuildCacheService

inline fun <T : BuildCache> BuildCacheConfiguration.registerBuildCacheService(configurationType: KClass<T>, buildCacheServiceFactoryType: KClass<out BuildCacheServiceFactory<in T>>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.caching.configuration.BuildCacheConfiguration.registerBuildCacheService.

#### See also

BuildCacheConfiguration.registerBuildCacheService