CachingFactory

class CachingFactory<in K, out V>(make: (K) -> V)

Functions

get
Link copied to clipboard
operator fun get(key: K): V
getOrSet
Link copied to clipboard
fun getOrSet(key: K, valueFactory: () -> @UnsafeVariance V): V

Properties

cache
Link copied to clipboard
val cache: HashMap<K, V>