compatible with lru v5.x

This commit is contained in:
DIYgod 2018-11-22 15:45:42 +08:00
parent 256551a850
commit 18d51b2f6f
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module.exports = function(options = {}) {
ignoreQuery = false,
} = options;
const memoryCache = lru({
const memoryCache = new lru({
maxAge: expire * 1000,
max: maxLength,
});