UNPKG

257 BTypeScriptView Raw
1import { CacheDelegate } from "./interfaces";
2export default class Cache<K, CK, V> {
3 private delegate;
4 hits: number;
5 misses: number;
6 private store;
7 constructor(delegate: CacheDelegate<K, CK, V>);
8 get(key: K): V;
9 clear(): void;
10}