We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce13bf commit 074000cCopy full SHA for 074000c
src/cache.mjs
@@ -6,7 +6,7 @@ export default class Cache {
6
#cache = null;
7
#config = {
8
ttl: 0,
9
- maxLength: 0,
+ maxLength: 250,
10
interval: 0,
11
intervalId: null,
12
enableInterval: false,
@@ -44,7 +44,7 @@ export default class Cache {
44
}
45
46
options.maxLength =
47
- typeof options.maxLength === "number" ? options.maxLength : 1000;
+ typeof options.maxLength === "number" ? options.maxLength : 250;
48
options.ttl = typeof options.ttl === "number" ? options.ttl : 0;
49
if (
50
typeof options.interval === "number" &&
0 commit comments