Cache

fun <K, V> Cache(creator: (K) -> V)

Parameters

K

the type of keys

V

the type of values

creator

a function that maps a key to a value, used to instantiate a value when it is requested and not in the cache

Sources

jvm source
Link copied to clipboard