cache2
Version:
一个简单的 JavaScript 缓存管理,支持浏览器端和 node 端。
5 lines (4 loc) • 326 B
TypeScript
import { JSON_Parse_reviver, JSON_Stringify_replacer, TStorage } from './interface';
export declare function isStorageSupported(storage: TStorage): boolean;
export declare function parse(value: any, reviver?: JSON_Parse_reviver): any;
export declare function stringify(value: any, replacer?: JSON_Stringify_replacer): string;