Package-level declarations
Types
Link copied to clipboard
A mutation observed on a Cache, emitted by Cache.changes.
Link copied to clipboard
Link copied to clipboard
Strategy describing how a repository should reconcile cached data with the network. Mirrors SwiftyNetwork's CachePolicy.
Link copied to clipboard
class FileSystemCache<V : Any>(directory: File, encode: (V) -> String, decode: (String) -> V, ioContext: CoroutineContext = Dispatchers.IO, currentTimeMillis: () -> Long = System::currentTimeMillis) : TimestampedCache<V> , PersistentCache<V>
A durable PersistentCache that stores each entry as a file under directory.
Link copied to clipboard
class InMemoryCache<V : Any>(maxSize: Int? = null, currentTimeMillis: () -> Long = System::currentTimeMillis) : TimestampedCache<V>
An in-memory TimestampedCache with optional LRU eviction.
Link copied to clipboard
Link copied to clipboard
Marker interface for caches backed by durable storage (disk, database). Mirrors SwiftyNetwork's PersistentCache.
Link copied to clipboard
Functions
Link copied to clipboard
Whether cached data of age cacheAgeMillis may be served under this policy.