mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-29 08:49:40 +00:00
15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
export declare class Cache<K = any, V = any> {
|
|
private max;
|
|
dispose: (value: V, key: K) => void;
|
|
private map;
|
|
private newest;
|
|
private oldest;
|
|
constructor(max?: number, dispose?: (value: V, key: K) => void);
|
|
has(key: K): boolean;
|
|
get(key: K): void | V;
|
|
private getEntry;
|
|
set(key: K, value: V): V;
|
|
clean(): void;
|
|
delete(key: K): boolean;
|
|
}
|