import ExpiredCacheItem from "./ExpiredCacheItem"; import { CacheMap, DisposeFun, MemoizeCache } from "../interface"; import BaseCacheWithDispose from "./BaseCacheWithDispose"; interface QuickLRUOptions { max?: number; maxAge?: number; weak?: boolean; dispose?: DisposeFun; } export default class ExpiredLRUCache extends BaseCacheWithDispose> implements CacheMap { readonly max: number; readonly maxAge: number; private size; oldCacheMap: MemoizeCache>; constructor(options?: QuickLRUOptions); private isOverTime; private deleteIfExpired; private getOrDeleteIfExpired; private getItemValue; private _set; private moveToRecent; get(key: string | object): V | undefined; set(key: string | object, value: V): this; has(key: string | object): boolean; delete(key: string | object): boolean; disposeAllValue(cacheMap: MemoizeCache): void; clear(): void; } export {};