🧠Redis Configuration

If you choose to use the Redis driver for horizontal scalability, rate-limiting data storage, or queue support, you will need to configure additional environment variables to instruct soketi on how to connect to Redis.

If you are not using Redis for rate limiting or queues, these environment variables are not required.

Environment Variables

Redis Sentinel

The following additional options are available when connecting to Redis through one or more Sentinels.

Please be aware that utilizing the Sentinel options will override some of the other options like DB_REDIS_HOST and DB_REDIS_PORT, but not DB_REDIS_DB or DB_REDIS_PASSWORD. More details can be found in the ioredis documentation for Redis Sentinel.

Redis Cluster

The following additional options are available when connecting to Redis Cluster configurations.

Please be aware that utilizing the Cluster options will override some of the other options like DB_REDIS_HOST and DB_REDIS_PORT, but not DB_REDIS_DB or DB_REDIS_PASSWORD. More details can be found in the ioredis documentation for Redis Cluster.

Last updated