UNPKG

whale-plus

Version:

A Component Library for Vue 3

12 lines (11 loc) 432 B
import type { AsyncCacheStore } from '../asyncCacheStore'; declare class LocalStorageCacheStore 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 useLocationStorageCache(): LocalStorageCacheStore; export {};