MCPcopy Index your code
hub / github.com/TanStack/db / StorageAdapter

Interface StorageAdapter

packages/offline-transactions/src/types.ts:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113export interface StorageAdapter {
114 get: (key: string) => Promise<string | null>
115 set: (key: string, value: string) => Promise<void>
116 delete: (key: string) => Promise<void>
117 keys: () => Promise<Array<string>>
118 clear: () => Promise<void>
119}
120
121export interface RetryPolicy {
122 calculateDelay: (retryCount: number) => number

Callers

nothing calls this directly

Implementers 5

FakeStorageAdapterpackages/query-db-collection/e2e/offli
FakeStorageAdapterpackages/offline-transactions/tests/ha
ElectronSQLiteStorageAdapterexamples/electron/offline-first/src/db
AsyncStorageAdapterexamples/react-native/shopping-list/sr
AsyncStorageAdapterexamples/react-native/offline-transact

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…