Cache Strategy
Types
Link copied to clipboard
Once retrieved, the data is stored in cache and will be always get from the cache.
Link copied to clipboard
Data is always fetched from the server.
Link copied to clipboard
data class TtlCache(val validityDurationInMillis: Long, val strict: Boolean) : CacheStrategy
Content copied to clipboard
Once data is retrieved, it is stored for the provided amount of time. In case of error, and if strict is set to false, the cache can be returned if available