Package-level declarations
Reactive key-value store algorithms represented by the Cache
interface.
For convenience, adapters are provided:
cache
caches calls to anysuspend
function,batchingCache
intercepts subsequent cache requests and batches them into a single larger request.
The following cache layers are available:
cachedInMemory
stores results in-memory. When values are updated, it continues to show the old values while the new ones are being fetched,expireAfter
expires the values stored by the previous layer after some time has passed.
Types
Stores information temporarily to avoid unneeded network requests.
Stores information temporarily to avoid unneeded network requests, with no error strategy.
Functions
Cache implementation which collects cache requests into batches which are queried at the same time.
Cache implementation which calls a given transform suspending function.
In-browser Cache layer.
In-browser Cache implementation that is shared between tabs and persists when the browser is closed.
In-memory Cache layer.
In-browser Cache implementation that is cleared when the tab is closed.
Age-based Cache expiration strategy.