MCPcopy
hub / github.com/simstudioai/sim / setCache

Function setCache

apps/sim/hooks/queries/tables.test.ts:97–99  ·  view source on GitHub ↗
(key: readonly unknown[], value: unknown)

Source from the content-addressed store, hash-verified

95const WORKSPACE_ID = 'ws-1'
96
97function setCache(key: readonly unknown[], value: unknown) {
98 cacheStore.set(JSON.stringify(key), value)
99}
100
101function getCache<T>(key: readonly unknown[]): T | undefined {
102 return cacheStore.get(JSON.stringify(key)) as T | undefined

Callers 1

tables.test.tsFile · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected