BuildlessCacheService

class BuildlessCacheService(endpoint: URI, httpClientHelper: HttpClientHelper, http2ClientHelper: Http2ClientHelper, requestCustomizer: HttpBuildCacheRequestCustomizer, useExpectContinue: Boolean) : HttpBuildCacheService, BuildCacheService(source)

Buildless: Cache Service

Build cache service implementing optimized transport with Buildless; see BuildlessCache for more information. This service is shared throughout the Gradle build process, and is responsible for implementing optimized cache protocols with the Buildless Agent.

 

If the Buildless agent is not running, or for any other reason Buildless protocols are not available, this service falls back to default Gradle cache behavior.

Parameters

endpoint

Configured cache endpoint.

httpClientHelper

HTTP client helper.

http2ClientHelper

HTTP/2 client helper.

requestCustomizer

HTTP request customizer.

useExpectContinue

Whether to use the HTTP/1.1 Expect: 100-continue header.

See also

for more information.

Constructors

Link copied to clipboard
constructor(endpoint: URI, httpClientHelper: HttpClientHelper, http2ClientHelper: Http2ClientHelper, requestCustomizer: HttpBuildCacheRequestCustomizer, useExpectContinue: Boolean)

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
open override fun load(key: BuildCacheKey, reader: BuildCacheEntryReader): Boolean

Load a cache entry from the Buildless-powered cache; if Buildless-specific protocols are not available or the Buildless Agent is not running, this will fall back to the default Gradle cache behavior.

Link copied to clipboard
open override fun store(key: BuildCacheKey, writer: BuildCacheEntryWriter)

Store an entry within the Buildless-powered cache; if Buildless-specific protocols are not available, or the Buildless Agent is not running, this will fall back to the default Gradle cache behavior.