compatible with lru v5.x
This commit is contained in:
parent
256551a850
commit
18d51b2f6f
|
|
@ -14,7 +14,7 @@ module.exports = function(options = {}) {
|
|||
ignoreQuery = false,
|
||||
} = options;
|
||||
|
||||
const memoryCache = lru({
|
||||
const memoryCache = new lru({
|
||||
maxAge: expire * 1000,
|
||||
max: maxLength,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue