compatible with lru v5.x

This commit is contained in:
DIYgod
2018-11-22 15:45:42 +08:00
parent 256551a850
commit 18d51b2f6f
+1 -1
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,
});