UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

23 lines (17 loc) 470 B
// tslint:disable-next-line: interface-name export interface ICache { v: any; /** 过期时间戳,`0` 表示不过期 */ e: number; } // tslint:disable-next-line: interface-name export interface ICacheStore { get(key: string): ICache | null; set(key: string, value: ICache): boolean; remove(key: string): void; } export type CacheNotifyType = 'set' | 'remove' | 'expire'; export interface CacheNotifyResult { type: CacheNotifyType; value?: any; }