mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
feat: enhance sync cache with size limits and entry management
This commit is contained in:
@@ -107,6 +107,12 @@
|
||||
// In-memory /api/sync response cache TTL (milliseconds).
|
||||
// /api/sync 内存缓存有效期(毫秒)。
|
||||
syncResponseTtlMs: 30 * 1000,
|
||||
// Max size of a single cached /api/sync body in bytes.
|
||||
// 单个 /api/sync 缓存响应允许的最大字节数。
|
||||
syncResponseMaxBodyBytes: 512 * 1024,
|
||||
// Max total in-memory bytes used by /api/sync cache per isolate.
|
||||
// 每个 isolate 中 /api/sync 缓存允许占用的最大总字节数。
|
||||
syncResponseMaxTotalBytes: 2 * 1024 * 1024,
|
||||
// Max in-memory /api/sync cache entries per isolate.
|
||||
// 每个 isolate 的 /api/sync 最大缓存条目数。
|
||||
syncResponseMaxEntries: 64,
|
||||
|
||||
Reference in New Issue
Block a user