class Cache<K, V>
A simple thread-safe cache of objects.
Cache(creator: (K) -> V)
A simple thread-safe cache of objects. |
fun clear(): Unit
Removes all keys and values from the cache. |
|
fun get(key: K, useCache: Boolean = true): V
Returns the value that corresponds to |