mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-08 11:38:51 +01:00
⚡ feat: Add Keyv memory cache read-through for MCPServersRegistry (#11030)
Co-authored-by: Atef Bellaaj <slalom.bellaaj@external.daimlertruck.com>
This commit is contained in:
parent
95a69df70e
commit
41f815c037
4 changed files with 171 additions and 11 deletions
7
packages/api/src/cache/cacheConfig.ts
vendored
7
packages/api/src/cache/cacheConfig.ts
vendored
|
|
@ -112,6 +112,13 @@ const cacheConfig = {
|
|||
* @default 1000
|
||||
*/
|
||||
REDIS_SCAN_COUNT: math(process.env.REDIS_SCAN_COUNT, 1000),
|
||||
|
||||
/**
|
||||
* TTL in milliseconds for MCP registry read-through cache.
|
||||
* This cache reduces redundant lookups within a single request flow.
|
||||
* @default 5000 (5 seconds)
|
||||
*/
|
||||
MCP_REGISTRY_CACHE_TTL: math(process.env.MCP_REGISTRY_CACHE_TTL, 5000),
|
||||
};
|
||||
|
||||
export { cacheConfig };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue