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

rehydrate

open fun rehydrate(): Unit

Overrides Cache.rehydrate

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.