UNPKG

whale-plus

Version:

A Component Library for Vue 3

11 lines (10 loc) 390 B
import type { AsyncCacheStore } from '../asyncCacheStore'; declare class MemoryCacheStore implements AsyncCacheStore { private store; 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 useMemoryCache(): MemoryCacheStore; export {};