ghost-cache
Version:
A lightweight auto-caching wrapper for fetch() and Axios with multi-storage support (localStorage, sessionStorage, IndexedDB, Redis)
10 lines • 391 B
TypeScript
import { IStorageAdapter } from "./IStorageAdapter.js";
export declare class RedisAdapter implements IStorageAdapter {
private client;
constructor(client: any);
getItem(key: string): Promise<string | null>;
setItem(key: string, value: string): Promise<void>;
removeItem(key: string): Promise<void>;
clear(): Promise<void>;
}
//# sourceMappingURL=RedisAdapter.d.ts.map