Skip to content

Commit 2ce13bf

Browse files
Updated max length size to 250
1 parent 28ebb46 commit 2ce13bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = class Cache {
66
#cache = null;
77
#config = {
88
ttl: 0,
9-
maxLength: 0,
9+
maxLength: 250,
1010
interval: 0,
1111
intervalId: null,
1212
enableInterval: false,
@@ -44,7 +44,7 @@ module.exports = class Cache {
4444
}
4545

4646
options.maxLength =
47-
typeof options.maxLength === "number" ? options.maxLength : 1000;
47+
typeof options.maxLength === "number" ? options.maxLength : 250;
4848
options.ttl = typeof options.ttl === "number" ? options.ttl : 0;
4949
if (
5050
typeof options.interval === "number" &&

0 commit comments

Comments
 (0)