mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
test: add cache test cases
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user