Cache

class Cache<K : Any, V : Any>(defaultScope: <Error class: unknown class>?, cache: <Error class: unknown class><K, V>)

Constructors

Link copied to clipboard
constructor(defaultScope: <Error class: unknown class>?, cache: <Error class: unknown class><K, V>)

Types

Link copied to clipboard
class Builder<K : Any, V : Any>
Link copied to clipboard

Functions

Link copied to clipboard
fun asDeferredMap(): Map<K, <Error class: unknown class><V>>
Link copied to clipboard
suspend fun asMap(): Map<K, V>
Link copied to clipboard
suspend fun get(key: K, block: suspend <Error class: unknown class>.(K) -> V): V
Link copied to clipboard
suspend fun <E> getCatching(key: K, block: suspend <Error class: unknown class>.(K) -> <Error class: unknown class><V, E>): <Error class: unknown class><V, E>
Link copied to clipboard
suspend fun getIfPresent(key: K): V?
Link copied to clipboard
fun invalidate(key: K)
Link copied to clipboard
Link copied to clipboard
fun put(key: K, value: V): V
suspend fun put(key: K, block: suspend <Error class: unknown class>.(K) -> V): V