suparnatural-cache / com.suparnatural.core.cache / FifoCacheReplacementPolicy / registerObjectUnsafe

registerObjectUnsafe

fun registerObjectUnsafe(obj: CacheableContainer): CacheableContainer?

Overrides CacheReplacementPolicy.registerObjectUnsafe

Adds a cache entry for the object and returns the entry of a pruned object. Pruning occurs when the cache space is full.