From 2b1a9124782c905ae118ba17f3383da0e8bc735b Mon Sep 17 00:00:00 2001 From: sent Date: Thu, 5 Jun 2025 21:26:40 -0700 Subject: [PATCH] Update others/scaler.mjs --- others/scaler.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/others/scaler.mjs b/others/scaler.mjs index 7b31e40f..32c69bf1 100644 --- a/others/scaler.mjs +++ b/others/scaler.mjs @@ -1,4 +1,4 @@ -What about this import { LRUCache } from 'lru-cache'; +import { LRUCache } from 'lru-cache'; let maxKeys = 10_000; let cache = makeCache(maxKeys); @@ -6,7 +6,7 @@ let cache = makeCache(maxKeys); function makeCache(maxEntries) { return new LRUCache({ maxSize: maxEntries, - ttl: 4 * 24 * 60 * 60 * 1_000, + ttl: 60_000, allowStale: false, updateAgeOnGet: false, updateAgeOnHas: false,