get

suspend fun get(key: K): V?

Returns the value to which the specified key is mapped, or null if this cache contains no mapping for the key.

Side Effect: A successful retrieval marks the entry as "most recently used," moving it to the end of the eviction queue.

Return

The value associated with the key, or null if the key is not found.

Parameters

key

The key whose associated value is to be returned.