CachePolicy

data class CachePolicy(val static: Duration = 7.days, val slow: Duration = 1.days, val medium: Duration = 1.hours, val live: Duration = Duration.ZERO)

Time-to-live for each Freshness. A zero or negative TTL means "don't cache".

Constructors

Link copied to clipboard
constructor(static: Duration = 7.days, slow: Duration = 1.days, medium: Duration = 1.hours, live: Duration = Duration.ZERO)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ttl(freshness: Freshness): Duration