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

Method getQueryCache

packages/query-core/src/queryClient.ts:866–868  ·  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

864 * ```
865 */
866 getQueryCache(): QueryCache {
867 return this.#queryCache
868 }
869
870 /**
871 * 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