You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
409 B

export function lru<T = any>(max?: number, ttl?: number): LRU<T>;
export interface LRU<T> {
first: T | null;
last: T | null;
max: number;
size: number;
ttl: number;
clear(): this;
delete(key: any): this;
evict(bypass?: boolean): this;
get(key: any): T | undefined;
keys(): string[];
set(key: any, value: T, bypass?: boolean): this;
}
export { };