Instantiates a new Store object
Creates a query, which is used to smartly cache the results of functions.
The key in the cache for this query. Must be unique within a store.
The function to call in order to resolve the query. This function is not called until the first request.
The initial parameter used.
Query<TRequestBody, TResult>
Gets the most recent value from the store, given its storage key. This will never trigger a refetch even if the cache is dirty.
The key of the entry to fetch.
CacheResult
Gets a value from the store, given its storage key. This will never trigger a refetch even if the cache is dirty.
The key of the entry to fetch.
The body of the request you want to retrieve.
CacheResult
Generated using TypeDoc
Represents a smart cache. An instance of this class is required for any cached queries.