mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🌐 feat: Configurable Redis Cluster Mode with Single URI Support (#9039)
* ✨ feat: Add support for enabling Redis cluster configuration * ✨ feat: Enhance Redis client initialization to support cluster configuration without multiple URIs * ✨ feat: Add tests for USE_REDIS_CLUSTER configuration and validation * 🐞 fix: Remove unnecessary blank line in cacheConfig tests
This commit is contained in:
parent
ad1503abdc
commit
9b6395d955
3 changed files with 37 additions and 3 deletions
3
api/cache/cacheConfig.js
vendored
3
api/cache/cacheConfig.js
vendored
|
|
@ -52,7 +52,8 @@ const cacheConfig = {
|
|||
REDIS_CONNECT_TIMEOUT: math(process.env.REDIS_CONNECT_TIMEOUT, 10000),
|
||||
/** Queue commands when disconnected */
|
||||
REDIS_ENABLE_OFFLINE_QUEUE: isEnabled(process.env.REDIS_ENABLE_OFFLINE_QUEUE ?? 'true'),
|
||||
|
||||
/** Enable redis cluster without the need of multiple URIs */
|
||||
USE_REDIS_CLUSTER: isEnabled(process.env.USE_REDIS_CLUSTER ?? 'false'),
|
||||
CI: isEnabled(process.env.CI),
|
||||
DEBUG_MEMORY_CACHE: isEnabled(process.env.DEBUG_MEMORY_CACHE),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue