ut-tools
Version:
Build and Release management automation package.
16 lines (15 loc) • 387 B
TypeScript
import * as Types from './types';
export declare class Cache implements Types.ICache {
private _stats;
private readonly _stdTTL;
private _data;
constructor(opts?: Types.ICacheOpts);
get stats(): {
hits: number;
misses: number;
};
get(key: string): any;
set(key: string, val: any): void;
has(key: string): boolean;
purge(): void;
}