mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add .has() call to cache/ttl
This commit is contained in:
2
src/cache/ttl.js
vendored
2
src/cache/ttl.js
vendored
@@ -30,7 +30,7 @@ module.exports = function (opts) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
cache.has = (key) => {
|
cache.has = function (key) {
|
||||||
if (!cache.enabled) {
|
if (!cache.enabled) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user