cache-ttl
Version:
The key-value storage with TTL support, allowing you to add, modify or delete stored data items.
9 lines (8 loc) • 315 B
TypeScript
declare abstract class Time {
private static timers;
protected static watch(key: string, ttl: number, expired: (key: string) => void): void;
protected static unwatch(key: string): void;
protected static unwatchAll(): void;
protected static readonly countWatchers: number;
}
export default Time;