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

removeObject

abstract fun <T : Cacheable> removeObject(key: String): <ERROR CLASS><T?, Boolean>

Removed a Cacheable object from the cache.

Parameters

T - the type of object removed from key

Return
A Pair of removed object and a boolean which is true if the object is removed.