suparnatural-cache / com.suparnatural.core.cache / CacheableContainer / <init>

<init>

CacheableContainer(obj: Cacheable)

A Container which holds Cacheable objects which can identified by the key derived from Cacheable.cacheKey. The cached object is converted to immutable before caching. So any updates to the same object will cause an error.