Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

QueryCache

class QueryCache extends Subscribable<QueryCacheListener> {
constructor(config?: QueryCacheConfig);
private queries;
private queriesMap;
config: QueryCacheConfig;
 
add(query: Query<any, any, any, any>): void;
build<TQueryFnData, TError, TData, TQueryKey extends QueryKey>(
client: QueryClient,
options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,
state?: QueryState<TData, TError>,
): Query<TQueryFnData, TError, TData, TQueryKey>;
clear(): void;
find<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData>(arg1: QueryKey, arg2?: QueryFilters): Query<TQueryFnData, TError, TData> | undefined;
findAll(queryKey?: QueryKey, filters?: QueryFilters): Query[];
findAll(filters?: QueryFilters): Query[];
findAll(arg1?: QueryKey | QueryFilters, arg2?: QueryFilters): Query[];
get<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueyKey extends QueryKey = QueryKey>(queryHash: string): Query<TQueryFnData, TError, TData, TQueyKey> | undefined;
getAll(): Query[];
notify(event: QueryCacheNotifyEvent): void;
onFocus(): void;
onOnline(): void;
remove(query: Query<any, any, any, any>): void;
}

§Extends

§
Subscribable<QueryCacheListener>
[src]

§Constructors

§
new QueryCache(config?: QueryCacheConfig)
[src]

§Properties

§
queries
[src]
§
queriesMap
[src]
§
config: QueryCacheConfig
[src]

§Methods

§
add(query: Query<any, any, any, any>): void
[src]
§
build<TQueryFnData, TError, TData, TQueryKey extends QueryKey>(client: QueryClient, options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>, state?: QueryState<TData, TError>): Query<TQueryFnData, TError, TData, TQueryKey>
[src]
§
clear(): void
[src]
§
find<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData>(arg1: QueryKey, arg2?: QueryFilters): Query<TQueryFnData, TError, TData> | undefined
[src]
§
findAll(queryKey?: QueryKey, filters?: QueryFilters): Query[]
[src]
findAll(filters?: QueryFilters): Query[]
[src]
findAll(arg1?: QueryKey | QueryFilters, arg2?: QueryFilters): Query[]
[src]
§
get<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueyKey extends QueryKey = QueryKey>(queryHash: string): Query<TQueryFnData, TError, TData, TQueyKey> | undefined
[src]
§
getAll(): Query[]
[src]
§
notify(event: QueryCacheNotifyEvent): void
[src]
§
onFocus(): void
[src]
§
onOnline(): void
[src]
§
remove(query: Query<any, any, any, any>): void
[src]