KCacheConfig

constructor(maxAgeSeconds: Long = 300, maxEntries: Int = 100, strategy: KCacheStrategy = KCacheStrategy.NetworkFirst)(source)

Parameters

maxAgeSeconds

How long a cached response is considered fresh.

maxEntries

Maximum number of responses kept in memory. Oldest entries are evicted when the limit is reached.

strategy

Cache strategy. See KCacheStrategy.