UNPKG

401 BTypeScriptView Raw
1declare const _default: {
2 new <T>(): {
3 cache: Map<string, T>;
4 set(id: string, value: T): void;
5 has(id: string): boolean;
6 get(id: string): T;
7 del(id: string): void;
8 apply(id: string, value: any): any;
9 flush(): void;
10 size(): number;
11 dump(): {
12 [k: string]: T;
13 };
14 };
15};
16export = _default;