mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
fix default value of cache maxAge
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = function(app, options = {}) {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
set: async (key, value, maxAge) => {
|
set: async (key, value, maxAge = 24 * 60 * 60) => {
|
||||||
if (!value || value === 'undefined') {
|
if (!value || value === 'undefined') {
|
||||||
value = '';
|
value = '';
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,7 @@ module.exports = function(app, options = {}) {
|
|||||||
return routeCache.get(key);
|
return routeCache.get(key);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
set: (key, value, maxAge) => {
|
set: (key, value, maxAge = 24 * 60 * 60) => {
|
||||||
if (!value || value === 'undefined') {
|
if (!value || value === 'undefined') {
|
||||||
value = '';
|
value = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user