Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

StorageAdapter.ts

11 lines383 Bytes

1import type { StorageAdapter } from '../types'
2​
3export abstract class BaseStorageAdapter implements StorageAdapter {
4 abstract get(key: string): Promise<string | null>
5 abstract set(key: string, value: string): Promise<void>
6 abstract delete(key: string): Promise<void>
7 abstract keys(): Promise<Array<string>>
8 abstract clear(): Promise<void>
9}
10​
11export { type StorageAdapter }