class HttpCacheOptions
source · line 58public
public class HttpCacheOptions public constructor(
/**
* The cache storage implementation.
*/
public val storage: HttpCache,
/**
* An explicit isolation partition; None selects the client's default partition.
*/
public val partition: String? = None,
/**
* The wall clock used for response age and freshness.
*/
public val clock: Clock = SystemClock
)
Explicit cache storage, identity partition, and clock used for freshness calculations.
Extensions
public fun HttpCacheOptions.copy(configure: HttpCacheOptionsBuilder.() -> Unit = {}): HttpCacheOptions· scoop:scoop.http.client:0.1.0
property partition
source · line 66public
public val partition: String? = None
get: public read-only
An explicit isolation partition; None selects the client's default partition.
property storage
source · line 62public
public val storage: HttpCache
get: public read-only
The cache storage implementation.
property clock
source · line 70public
public val clock: Clock = SystemClock
get: public read-only
The wall clock used for response age and freshness.
constructor constructor
source · line 58public
constructor(public val storage: HttpCache, public val partition: String? = None, public val clock: Clock = SystemClock)
parameter clock
source · line 70public
public val clock: Clock = SystemClock
parameter storage
source · line 62public
public val storage: HttpCache
parameter partition
source · line 66public
public val partition: String? = None