@inventivetalent/loading-cache
Version:
loading cache based on ben-manes/caffeine and node-cache
18 lines (17 loc) • 508 B
TypeScript
import { EventEmitter } from "events";
/**
* Static definitions of all cache stats
*/
export declare class CacheStats extends EventEmitter {
static readonly HIT: string;
static readonly MISS: string;
static readonly LOAD_SUCCESS: string;
static readonly LOAD_FAIL: string;
static readonly EXPIRE: string;
static readonly ALL: string[];
private readonly map;
inc(key: string, amount?: number): void;
get(key: string): number;
reset(): void;
toString(): string;
}