Companion

object Companion

Functions

Link copied to clipboard
fun <T> permanent(value: T): CacheEntry<T>

Creates an entry that never expires.

Link copied to clipboard
fun <T> withTtlMinutes(value: T, ttlMinutes: Long): CacheEntry<T>

Creates an entry with a TTL specified in minutes.

Link copied to clipboard
fun <T> withTtlSeconds(value: T, ttlSeconds: Long): CacheEntry<T>

Creates an entry with a TTL specified in seconds.