@inventivetalent/loading-cache
Version:
loading cache based on ben-manes/caffeine and node-cache
21 lines (20 loc) • 463 B
TypeScript
import { EventEmitter } from "events";
/**
* Static definitions of all cache events
*/
export declare class CacheEvents {
/**
* (key, value)
*/
static readonly EXPIRE = "expire";
/**
* (stat, incAmount, prevAmount)
*/
static readonly STAT = "stat";
/**
* (error)
*/
static readonly ERROR = "error";
static readonly ALL: string[];
static forward(source: EventEmitter, emitter: EventEmitter): void;
}