Remove the cache limit entirely
This commit is contained in:
parent
cbc2918228
commit
75258f3ebc
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
Loading…
Reference in a new issue