From 81134ea2d43619e976b69a5c77df1f4627840b19 Mon Sep 17 00:00:00 2001 From: po-lan <42771836+po-lan@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:13:24 +0800 Subject: [PATCH] Update LRUCache.ts --- src/common/utils/LRUCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/LRUCache.ts b/src/common/utils/LRUCache.ts index cf459e87..3a8333fd 100644 --- a/src/common/utils/LRUCache.ts +++ b/src/common/utils/LRUCache.ts @@ -31,7 +31,7 @@ class LRU { private tail: cacheNode | null = null; private onFuncs: ((node: cacheNode) => 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);