feat: attachments support

This commit is contained in:
Julian Lam
2024-02-16 12:07:29 -05:00
parent 8b0ccc8090
commit e5b6ee97bd
5 changed files with 47 additions and 10 deletions

8
src/cache/lru.js vendored
View File

@@ -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;