Add updateAgeOnGet to lru-cache

This commit is contained in:
Henry
2019-01-24 22:05:36 +00:00
parent 36eae92311
commit 313fd8ef76

View File

@@ -17,6 +17,7 @@ module.exports = function(options = {}) {
const memoryCache = new lru({
maxAge: expire * 1000,
max: maxLength,
updateAgeOnGet: true,
});
options.app.context.cache = {