test: add cache test cases

This commit is contained in:
DIYgod
2019-08-23 15:07:48 +08:00
parent 616e79036d
commit 10c63882bf
2 changed files with 19 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ module.exports = function(app, options = {}) {
}
},
client: redisClient,
globalCache: globalCache,
};
globalCache.get = async (key) => {
if (key && available) {
@@ -105,6 +106,7 @@ module.exports = function(app, options = {}) {
}
},
client: [pageCache, routeCache],
globalCache: globalCache,
};
globalCache.get = (key) => {
if (key && available) {