LibreChat/api/cache
Danny Avila ec3cbca6e3
feat: Enhance Redis Config and Error Handling (#8709)
*  feat: Enhance Redis Config and Error Handling

- Added new Redis configuration options: `REDIS_RETRY_MAX_DELAY`, `REDIS_RETRY_MAX_ATTEMPTS`, `REDIS_CONNECT_TIMEOUT`, and `REDIS_ENABLE_OFFLINE_QUEUE` to improve connection resilience.
- Implemented error handling for Redis cache creation and session store initialization in `cacheFactory.js`.
- Enhanced logging for Redis client events and errors in `redisClients.js`.
- Updated `README.md` to document new Redis configuration options.

* chore: Add JSDoc comments to Redis configuration options in cacheConfig.js for improved clarity and documentation

* ci: update cacheFactory tests

* refactor: remove fallback

* fix: Improve error handling in Redis cache creation, re-throw errors when expected
2025-07-28 14:21:39 -04:00
..
banViolation.js 🕐 feat: Configurable Retention Period for Temporary Chats (#8056) 2025-06-25 17:16:26 -04:00
banViolation.spec.js 🏗️ refactor: Extract DB layers to data-schemas for shared use (#7650) 2025-05-30 22:18:13 -04:00
cacheConfig.js feat: Enhance Redis Config and Error Handling (#8709) 2025-07-28 14:21:39 -04:00
cacheConfig.spec.js feat: Add Redis Ping Interval Configuration (#8648) 2025-07-25 11:00:02 -04:00
cacheFactory.js feat: Enhance Redis Config and Error Handling (#8709) 2025-07-28 14:21:39 -04:00
cacheFactory.spec.js feat: Enhance Redis Config and Error Handling (#8709) 2025-07-28 14:21:39 -04:00
clearPendingReq.js 🤖 feat: Support o4-mini and o3 Models (#6928) 2025-04-17 00:40:26 -04:00
getLogStores.js feat: Add support for forced in-memory cache namespaces configuration (#8586) 2025-07-25 10:32:55 -04:00
index.js feat(api): initial Redis support; fix(SearchBar): proper debounce (#1039) 2023-10-11 17:05:47 -04:00
keyvFiles.js 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
keyvMongo.js 🔧 fix: Keyv and Proxy Issues, and More Memory Optimizations (#6867) 2025-04-13 23:01:55 -04:00
logViolation.js 🏦 refactor: Centralize Caching & Redis Key Prefixing (#8457) 2025-07-15 18:24:31 -04:00
redisClients.js feat: Enhance Redis Config and Error Handling (#8709) 2025-07-28 14:21:39 -04:00