OnlineCachePolicy

Interface representing the cache policy of HttpHandler.

Important: This is a Public Preview API. It may be changed or removed at any time.

Types

Link copied to clipboard
data class Custom(val cacheDurationFilter: Map<String, Duration> = emptyMap(), val sizeLimit: Long) : OnlineCachePolicy

A policy that allows the user to specify: a) the data duration in cache to the corresponding request URL filter. b) the maximum number of bytes that cache should use to store its data.

Link copied to clipboard

A policy that doesn't specify a maximum amount of time that a fetched resource should be allowed to remain in cache. Instead, this would be handled by the server. The maximum number of bytes that cache should use to store its data is 10MB by default.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard