Skip to content

queryCache

The queryCache object is used to store data in the cache.

It is a Map object with the following properties.

const queryCache: Map<string, CacheItem>;

CacheItem

The CacheItem interface is used to define the data stored in the cache.

interface CacheItem {
controller?: AbortController;
payload: unknown;
status: string;
timestamp?: number;
}