# registerBuildCacheService

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

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

#### Since

3.5

#### See also

org.gradle.caching.configuration.BuildCacheConfiguration.registerBuildCacheService

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

Registers a custom build cache type.

#### Parameters

buildCacheServiceFactoryType

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

#### Type Parameters

T

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

#### See also

BuildCacheConfiguration.registerBuildCacheService