mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
compatible with lru v5.x
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = function(options = {}) {
|
||||
ignoreQuery = false,
|
||||
} = options;
|
||||
|
||||
const memoryCache = lru({
|
||||
const memoryCache = new lru({
|
||||
maxAge: expire * 1000,
|
||||
max: maxLength,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user