mongo-bolt
Version:
A lightweight, beginner-friendly MongoDB wrapper with inbuilt caching and simplified joins/indexing.
15 lines (14 loc) • 360 B
TypeScript
declare class CacheManager {
private cache;
private dllhead;
private dlltail;
private maxSize;
constructor(maxsize?: number);
set(key: string, value: any): void;
get(key: string): any | undefined;
has(key: string): boolean;
delete(key: string): boolean;
remove(): void;
clear(): void;
}
export default CacheManager;