Remove the cache limit entirely

This commit is contained in:
Essem 2021-08-09 08:33:16 -05:00
parent cbc2918228
commit 75258f3ebc
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -14,7 +14,7 @@ class TimedMap extends Map {
exports.runningCommands = new TimedMap();
class Cache extends Map {
/*class Cache extends Map {
constructor(values) {
super(values);
this.maxValues = 2048;
@ -24,7 +24,7 @@ class Cache extends Map {
super.set(key, value);
if (this.size > this.maxValues) this.delete(this.keys().next().value);
}
}
}*/
exports.prefixCache = new Cache();
exports.disabledCache = new Cache();
exports.prefixCache = new Map();
exports.disabledCache = new Map();