feat: update lru-cache to 9.x, closes #11454

This commit is contained in:
Barış Soner Uşaklı
2023-04-10 17:40:52 -04:00
parent bdacd1c6b4
commit c3cedefef3
2 changed files with 3 additions and 3 deletions

4
src/cache/lru.js vendored
View File

@@ -1,7 +1,7 @@
'use strict';
module.exports = function (opts) {
const LRU = require('lru-cache');
const { LRUCache } = require('lru-cache');
const pubsub = require('../pubsub');
// lru-cache@7 deprecations
@@ -28,7 +28,7 @@ module.exports = function (opts) {
}
});
const lruCache = new LRU(opts);
const lruCache = new LRUCache(opts);
const cache = {};
cache.name = opts.name;