T - the type of build cache configuration this factory can handle.@Incubating public interface BuildCacheServiceFactory<T extends BuildCache>
To be able to use a BuildCacheService, the factory that implements this interface
and the configuration type (BuildCache) must be
registered with the BuildCacheConfiguration.
In settings.gradle:
buildCache {
// Register custom build cache implementation
registerBuildCacheService(CustomBuildCache, CustomBuildCacheFactory)
remote(CustomBuildCache) {
// configure custom build cache.
}
}
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BuildCacheServiceFactory.Describer
Builder-style object that allows build cache service factories to describe the cache service.
|
| Modifier and Type | Method and Description |
|---|---|
BuildCacheService |
createBuildCacheService(T configuration,
BuildCacheServiceFactory.Describer describer)
Creates a build cache service from the given configuration.
|
BuildCacheService createBuildCacheService(T configuration, BuildCacheServiceFactory.Describer describer)