Custom

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.

Constructors

Link copied to clipboard
fun Custom(cacheDurationFilter: Map<String, Duration> = emptyMap(), sizeLimit: Long)

Functions

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

Properties

Link copied to clipboard

Mapping of the data duration in cache to the corresponding request URL filter.

Link copied to clipboard

Cache size limit in bytes.