forked from fanruan/fineui
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.
13 lines
289 B
13 lines
289 B
4 years ago
|
export declare class LRU {
|
||
|
size: number;
|
||
|
limit: number;
|
||
|
head: object;
|
||
|
tail: object;
|
||
|
_keymap: object;
|
||
|
constructor(limit?: number);
|
||
|
put(key: any, value: any): void;
|
||
|
shift(): object;
|
||
|
get(key: any, returnEntry?: boolean): any;
|
||
|
has(key: any): boolean;
|
||
|
}
|