MCPcopy Create free account
hub / github.com/TanStack/query / getQueryCache

Method getQueryCache

packages/query-core/src/queryClient.ts:865–867  ·  view source on GitHub ↗

* Returns the query cache this client is connected to. * @returns The QueryCache instance. * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient() * const queryCache = queryClient.getQueryCache() * const querie

()

Source from the content-addressed store, hash-verified

863 * ```
864 */
865 getQueryCache(): QueryCache {
866 return this.#queryCache
867 }
868
869 /**
870 * Returns the mutation cache this client is connected to.

Callers 15

ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
WithKnownParametersFunction · 0.80
WithKnownParametersFunction · 0.80
ExamplesFunction · 0.80
ExamplesFunction · 0.80
subscribeMethod · 0.80

Calls

no outgoing calls

Tested by 2

buildQueryFunction · 0.64
makeStateFunction · 0.64