Files
airllm-fork-nodejs/node_modules/node-llama-cpp/dist/utils/LruCache.d.ts
2026-02-05 15:27:49 +08:00

13 lines
374 B
TypeScript

export declare class LruCache<Key, Value> {
readonly maxSize: number;
constructor(maxSize: number, { onDelete }?: {
onDelete?(key: Key, value: Value): void;
});
get(key: Key): Value | undefined;
set(key: Key, value: Value): this;
get firstKey(): Key | undefined;
clear(): void;
keys(): MapIterator<Key>;
delete(key: Key): void;
}