fix default value of cache maxAge
This commit is contained in:
parent
dc903ab7da
commit
0ca946c705
|
|
@ -43,7 +43,7 @@ module.exports = function(app, options = {}) {
|
|||
return value;
|
||||
}
|
||||
},
|
||||
set: async (key, value, maxAge) => {
|
||||
set: async (key, value, maxAge = 24 * 60 * 60) => {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
|
|
@ -80,7 +80,7 @@ module.exports = function(app, options = {}) {
|
|||
return routeCache.get(key);
|
||||
}
|
||||
},
|
||||
set: (key, value, maxAge) => {
|
||||
set: (key, value, maxAge = 24 * 60 * 60) => {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue