onlyRetrieveFromCache

open fun onlyRetrieveFromCache(flag: Boolean): T

If set to true, will only load an item if found in the cache, and will not fetch from source.

By 'cache' we mean both the in memory cache and both types of disk cache (DATA and RESOURCE). If this flag is set to true and the item is not in the memory cache, but it is in one of the disk caches, the load will complete asynchronously.

If you'd like to only load an item from the memory cache. You can call this method with true and also call diskCacheStrategy with NONE


open val onlyRetrieveFromCache: Boolean