MCPcopy Create free account
hub / github.com/TanStack/db / get

Method get

packages/offline-transactions/tests/harness.ts:14–16  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

12 private store = new Map<string, string>()
13
14 async get(key: string): Promise<string | null> {
15 return Promise.resolve(this.store.has(key) ? this.store.get(key)! : null)
16 }
17
18 async set(key: string, value: string): Promise<void> {
19 this.store.set(key, value)

Callers 5

applyMutationsFunction · 0.45
wrappedMutationFunction · 0.45

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected