ReturnCacheIfNotExpired

data class ReturnCacheIfNotExpired(val maxAgeMillis: Long) : CachePolicy

Return cached data only if it is no older than maxAgeMillis; otherwise load from the network.

Constructors

Link copied to clipboard
constructor(maxAgeMillis: Long)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Whether cached data of age cacheAgeMillis may be served under this policy.