UNPKG

314 BTypeScriptView Raw
1export interface CacheStats {
2 gets: number;
3 hits: number;
4}
5/**
6 * Simple interface for a string-keyed cache
7 */
8export interface SimpleCache<T> {
9 put(key: string, value: T): void;
10 get(key: string): T;
11 evict(key: string): void;
12 stats: CacheStats;
13}
14//# sourceMappingURL=SimpleCache.d.ts.map
\No newline at end of file