mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 19:08:22 +02:00
feat: attachments support
This commit is contained in:
8
src/cache/lru.js
vendored
8
src/cache/lru.js
vendored
@@ -57,6 +57,14 @@ module.exports = function (opts) {
|
||||
});
|
||||
});
|
||||
|
||||
cache.has = function (key) {
|
||||
if (!cache.enabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return lruCache.has(key);
|
||||
};
|
||||
|
||||
cache.set = function (key, value, ttl) {
|
||||
if (!cache.enabled) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user