Cache

interface Cache<in K : Any, V : Any>

Functions

getOrCompute

abstract suspend fun getOrCompute(key: K): V

invalidate

abstract fun invalidate(key: K): V?
abstract fun invalidate(key: K, value: V): Boolean

invalidateAll

abstract fun invalidateAll(): Unit

peek

abstract fun peek(key: K): V?