suparnatural-cache / com.suparnatural.core.cache / Cache / addObject

addObject

abstract fun <T : Cacheable> addObject(obj: T): Boolean

Adds a Cacheable object to the cache. The cache key is retrieved by calling Cacheable.cacheKey method.

Parameters

T - the type of object being added.