Perf/Chore: increase cache store maxCount
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy (push) Has been cancelled

This commit is contained in:
SukkaW
2026-09-03 09:46:08 +08:00
parent 7b79e9e59f
commit 71dec369a7

View File

@@ -171,7 +171,7 @@ const agent = new Agent({
store: new BetterSqlite3CacheStore({
loose: true,
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
maxCount: 128,
maxCount: 256,
maxEntrySize: 1024 * 1024 * 100, // 100 MiB
revalidationRetention: 7 * 24 * 60 * 60 * 1000 // 7 days
}),