UNPKG

@ovine/core

Version:

Build flexible admin system with json.

12 lines (11 loc) 574 B
/** * 项目用到的全局数据存储模块 * TODO: 1. 添加缓存过期时间 2. 添加 undefined 兼容处理 */ export declare function setStore(key: string, value?: any): void; export declare function clearStore(key: string): void; export declare function getStore<T>(key: string): T | null; export declare function setSessionStore(key: string, value?: any): void; export declare function getSessionStore<T>(key: string): T | null; export declare function setGlobal(key: string, value: any): void; export declare function getGlobal<T>(key: string): T | undefined;