@Synchronized fun newCache(cache: CACHE, requirements: GET_CACHE_REQUIREMENTS): Unit
Save new cache response.
It is up to you to call newCache when you have new cache response to save. A good place to do this is in a ViewModel.
This function will call saveCache for you on a background thread.
This function will trigger a save to a background thread. To be notified on the new cache response, use observe to observe the state of response after it has been updated.
RuntimeException
- If calling after calling dispose.