From 42dc6501972e3d82b016b4bc5f31c2da50fdf2a0 Mon Sep 17 00:00:00 2001 From: Antoine Cormouls Date: Tue, 1 Nov 2022 18:42:47 +0100 Subject: [PATCH] fix: LRU deprecations --- src/Adapters/Cache/LRUCache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapters/Cache/LRUCache.js b/src/Adapters/Cache/LRUCache.js index a07d0347eb..f54d8503f9 100644 --- a/src/Adapters/Cache/LRUCache.js +++ b/src/Adapters/Cache/LRUCache.js @@ -18,11 +18,11 @@ export class LRUCache { } del(key) { - this.cache.del(key); + this.cache.delete(key); } clear() { - this.cache.reset(); + this.cache.clear(); } }