insomnia/packages/insomnia-app/app/sync/store/drivers/base.ts
2021-05-19 08:32:18 +12:00

10 lines
350 B
TypeScript

export interface BaseDriver {
new (config: Record<string, any>): void;
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>;
}