From e90a5183ec110ae9b6a0b03b4257193dbd29b4b8 Mon Sep 17 00:00:00 2001 From: Antoine Cormouls Date: Tue, 1 Nov 2022 21:33:14 +0100 Subject: [PATCH] refactor: replace deprecated LRU cache methods (#8266) --- 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 a07d0347..f54d8503 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(); } }