interface ICacheItem { data: any; latestTimestamp: number; timestamp: number; visit: number; } export interface KeyValueCacheOptions { timeout?: number; disablRemoveTimeoutCache?: boolean; } /** * 键值对缓存 * 可根据时间移除值 */ export declare class KeyValueCache { caches: Map; options: KeyValueCacheOptions; constructor(options?: KeyValueCacheOptions); set(key: K, value: V): void; get(key: K, options?: KeyValueCacheOptions): any; has(key: K, options?: KeyValueCacheOptions): boolean; private checkCache; private checkItemTimeout; } export {}; //# sourceMappingURL=KeyValueCache.d.ts.map