# 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`