Cache(creator: (K) -> V)
A simple thread-safe cache of objects.
K - the type of keys
K
V - the type of values
V
creator - a function that maps a key to a value, used to instantiate a value when it is requested and not in the cache
creator