MCPcopy
hub / github.com/nearform/graphql-hooks / saveCache

Method saveCache

packages/graphql-hooks/src/GraphQLClient.ts:199–203  ·  view source on GitHub ↗
(cacheKey, value)

Source from the content-addressed store, hash-verified

197 }
198
199 saveCache(cacheKey, value) {
200 if (this.cache) {
201 this.cache.set(cacheKey, value)
202 }
203 }
204
205 removeCache(cacheKey) {
206 this.cache?.delete(cacheKey)

Callers 2

setQueryDataMethod · 0.95
useClientRequestFunction · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected