mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 15:21:59 +08:00
@@ -109,6 +109,11 @@ module.exports = function(app, options = {}) {
|
||||
}
|
||||
};
|
||||
available = true;
|
||||
} else {
|
||||
app.context.cache = {
|
||||
get: () => null,
|
||||
set: () => null,
|
||||
};
|
||||
}
|
||||
|
||||
app.context.cache.tryGet = async function(key, getValueFunc, maxAge = 24 * 60 * 60) {
|
||||
|
||||
Reference in New Issue
Block a user