Update others/scaler.mjs

This commit is contained in:
sent 2025-06-05 21:26:40 -07:00
parent 78fbc42a0c
commit 2b1a912478

View File

@ -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,