InMemoryCache

class InMemoryCache<V> : Cache<V>

A basic in-memory cache.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()

Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.

Link copied to clipboard
open override fun onTrimMemory(level: MemoryObserver.Level)

Called by the system when memory needs to be freed.

Link copied to clipboard
open suspend override fun <T> transaction(block: suspend CacheTransaction<V>.() -> T): T

Performs an atomic block transaction on this cache.