put

suspend fun put(key: K, value: V)(source)

Puts a value into the cache, evicting an entry if at capacity.

Parameters

key

the cache key

value

the value to cache