CacheStrategy

sealed class CacheStrategy

Types

Link copied to clipboard
object InfiniteCache : CacheStrategy

Once retrieved, the data is stored in cache and will be always get from the cache.

Link copied to clipboard
object NoCache : CacheStrategy

Data is always fetched from the server.

Link copied to clipboard
data class TtlCache(val validityDurationInMillis: Long, val strict: Boolean) : CacheStrategy

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard