12 lines
265 B
TypeScript
12 lines
265 B
TypeScript
//#region src/client/utils/lru.d.ts
|
|
declare class LRUCache<K, V> {
|
|
private max;
|
|
private cache;
|
|
constructor(max?: number);
|
|
get(key: K): V | undefined;
|
|
set(key: K, val: V): void;
|
|
first(): K | undefined;
|
|
clear(): void;
|
|
}
|
|
//#endregion
|
|
export { LRUCache }; |