From ea49282a36d834282a6cf4442ee8ef45b2ad030f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gil=20Assun=C3=A7=C3=A3o?= Date: Wed, 19 Feb 2025 18:15:51 +0000 Subject: [PATCH] Updated REDIS section in dotenv.mdx --- pages/docs/configuration/dotenv.mdx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/docs/configuration/dotenv.mdx b/pages/docs/configuration/dotenv.mdx index 11a5de76..78889975 100644 --- a/pages/docs/configuration/dotenv.mdx +++ b/pages/docs/configuration/dotenv.mdx @@ -1024,9 +1024,22 @@ LibreChat supports Google Tag Manager for analytics. You will need a Google Tag **Important:** If using Redis, you should flush the cache after changing any LibreChat settings. +If you are using Redis, you will need to set the following variables: + +* `REDIS_URI`: The URI for your Redis instance. +* `USE_REDIS`: Set to `true` to enable Redis. +* `USE_REDIS_CLUSTER`: Set to `true` to enable Redis Cluster mode. +* `REDIS_CA`: The path to the PEM-encoded certificate authority file for Redis TLS connections. +* `REDIS_KEY_PREFIX`: A prefix to be added to all keys in the Redis database. Defaults to empty string if not specified. +* `REDIS_MAX_LISTENERS`: The maximum number of event listeners allowed for the Redis client instance. It helps prevent memory leaks by limiting event listeners. If set to 0 (zero), it will be considered limitless. Defaults to 10 if not specified. +