Scoop API

scoop:scoop.http.client:0.1.0

HttpCacheOptions

class HttpCacheOptions

source · line 58
public
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

property partition

source · line 66
public
public val partition: String? = None

get: public read-only

An explicit isolation partition; None selects the client's default partition.

property clock

source · line 70
public
public val clock: Clock = SystemClock

get: public read-only

The wall clock used for response age and freshness.