We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee7b27 commit 80d7eb3Copy full SHA for 80d7eb3
src/index.ts
@@ -4,12 +4,22 @@
4
* @since 2017-09-28
5
*/
6
7
-import Cache from 'lru-cache';
+import LRUCache from 'lru-cache';
8
import cacheAdapterEnhancer from './cacheAdapterEnhancer';
9
import retryAdapterEnhancer from './retryAdapterEnhancer';
10
import throttleAdapterEnhancer from './throttleAdapterEnhancer';
11
import { ICacheLike } from './utils/getDefaultLruCache';
12
13
+class Cache<K, V> extends LRUCache<K, V> {
14
+ constructor(options: LRUCache.Options<any, any>) {
15
+ super(options);
16
+ }
17
+
18
+ del(key: K): boolean {
19
+ return super.delete(key);
20
21
+}
22
23
export {
24
Cache,
25
ICacheLike,
0 commit comments