Cache
An asynchronous key-value cache.
The Kotlin counterpart of SwiftyNetwork's Cache protocol: all operations are suspend functions and implementations are expected to be safe for concurrent use (e.g. guarded by a kotlinx.coroutines.sync.Mutex). Timestamps are epoch milliseconds.
Type Parameters
V
the cached value type.
Inheritors
Functions
Link copied to clipboard
A hot stream of CacheChanges for this cache. The default is an empty flow, so caches that cannot observe mutations are simply non-reactive; observable caches override this.
Link copied to clipboard
Removes any value stored for key.