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:
Atef Bellaaj 2025-12-18 20:06:13 +01:00 committed by GitHub
parent 95a69df70e
commit 41f815c037
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 171 additions and 11 deletions

View file

@ -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 };