whale-plus
Version:
A Component Library for Vue 3
12 lines (11 loc) • 435 B
TypeScript
import type { AsyncCacheStore } from '../asyncCacheStore';
declare class SessionStorageCacheStore implements AsyncCacheStore {
private storage;
constructor();
get<T>(key: string): Promise<T | undefined>;
set<T>(key: string, value: T): Promise<void>;
delete(key: string): Promise<void>;
has(key: string): Promise<boolean>;
}
export declare function useSessionStorageCache(): SessionStorageCacheStore;
export {};