Update LRUCache.ts

This commit is contained in:
po-lan authored and GitHub committed 2024-07-05 12:13:24 +08:00
1 parent 45d6bb61d6
commit 4fbcf3d3b6
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ class LRU<T> {
private tail: cacheNode<T> | null = null;
private onFuncs: ((node: cacheNode<T>) => void)[] = [];
constructor(maxAge: number = 2e4, maxSize: number = 5e3) {
constructor(maxAge: number = 6e4, maxSize: number = 5e3) {
this.maxAge = maxAge;
this.maxSize = maxSize;
this.cache = Object.create(null);