UNPKG

@jbagatta/johnny-cache

Version:

A robust distributed dictionary for coordinating and caching expensive operations in a distributed environment

8 lines (7 loc) 252 B
export interface L1CacheManager { get<T>(namespacedKey: string): T | null; set<T>(key: string, value: T, ttlMs?: number | string): boolean; delete(key: string): Promise<void>; ttl(key: string, ttlMs: number): void; close(): void; }