CoroutineCache

interface CoroutineCache<K : Any, V : Any>

Inheritors

Functions

Link copied to clipboard
abstract fun asynchronous(): AsyncCache<K, V>

Returns the AsyncCache

Link copied to clipboard
abstract suspend fun get(key: K, mappingFunction: suspend (K) -> V?): V?

The coroutines implementation of Cache.get

Link copied to clipboard
abstract suspend fun getAll(keys: Iterable<K>, mappingFunction: suspend (Iterable<K>) -> Map<K, V>): Map<K, V>

The coroutines implementation of Cache.getAll

Link copied to clipboard
abstract suspend fun getIfPresent(key: K): V?

The coroutines implementation of Cache.getIfPresent

Link copied to clipboard
abstract fun put(key: K, value: V)

The coroutines implementation of Cache.put

Link copied to clipboard
abstract fun putAll(map: Map<K, V>)

The coroutines implementation of Cache.putAll

Link copied to clipboard
abstract fun synchronous(): Cache<K, V>

Returns the Cache