@gecut/utilities
Version:
The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.
13 lines (12 loc) • 367 B
TypeScript
export declare class InMemorySimpleCache<T> {
constructor(maxSize?: number);
protected memory: Map<string, T>;
protected maxSize: number;
get(key: string): T | undefined;
set(key: string, value: T): void;
delete(key: string): boolean;
clearAll(): void;
has(key: string): boolean;
get size(): number;
}
//# sourceMappingURL=in-memory.simple.d.ts.map