suparnatural-cache / com.suparnatural.core.cache / CacheManager

CacheManager

object CacheManager

A thread-safe object which manages the cache based on initialization parameters.

Note: Make sure to call initialize before accessing cache.

Properties

cache

var cache: Cache

Cache object managed by the CacheManager. Ensure that the cache is initialized before calling any methods on this object.

Functions

initialize

fun initialize(cache: Cache): Unit

Initialize the manager with cache. Cache.size must be > 1