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

rehydrate

abstract fun rehydrate(): Unit

Rehydrates the cache by loading all the cached objects from the persisted stores. It does a total replacement of current cache with the objects loaded from persistent stores and does not perform a merge of any sort.

For example, call this method after a cold start of your application to reload the cache with persisted objects from last session.