insomnia/packages/insomnia-app/app/sync/store/drivers/base.ts
Opender Singh f625b34a77
Fetch and store remote spaces (#3441)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-06-04 19:20:16 +12:00

9 lines
307 B
TypeScript

export interface BaseDriver {
hasItem(key: string): Promise<boolean>;
setItem(key: string, value: Buffer): Promise<void>;
getItem(key: string): Promise<Buffer | null>;
removeItem(key: string): Promise<void>;
keys(prefix: string, recursive: boolean): Promise<string[]>;
clear(): Promise<void>;
}