mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 15:47:48 +08:00
Add updateAgeOnGet to lru-cache
This commit is contained in:
@@ -17,6 +17,7 @@ module.exports = function(options = {}) {
|
||||
const memoryCache = new lru({
|
||||
maxAge: expire * 1000,
|
||||
max: maxLength,
|
||||
updateAgeOnGet: true,
|
||||
});
|
||||
|
||||
options.app.context.cache = {
|
||||
|
||||
Reference in New Issue
Block a user