TtlCache

data class TtlCache(val validityDurationInMillis: Long, val strict: Boolean) : CacheStrategy

Once data is retrieved, it is stored for the provided amount of time. In case of error, and if strict is set to false, the cache can be returned if available

Constructors

Link copied to clipboard
fun TtlCache(validityDurationInMillis: Long, strict: Boolean)

Properties

Link copied to clipboard
val strict: Boolean
Link copied to clipboard
val validityDurationInMillis: Long