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