Skip to content

Conversation

@bsbodden
Copy link
Collaborator

Add support for connecting to Redis through Sentinel using the redis+sentinel:// URL scheme. This enables high availability Redis deployments with automatic failover.

URL format: redis+sentinel://[username:password@]host1:port1,host2:port2/service_name[/db]

  • Add Sentinel URL parsing in RedisConnectionFactory
  • Support both sync and async Redis connections via Sentinel
  • Add comprehensive unit tests for Sentinel URL handling

Port of the support for Sentinel URL that was present in LangChain Community, see https://github.com/langchain-ai/langchain/blob/a03141ac51e36828dedcf2bfcb964df22b6a7f4a/libs/community/langchain_community/utilities/redis.py#L127

Fixes #213

Add support for connecting to Redis through Sentinel using the redis+sentinel:// URL scheme.
This enables high availability Redis deployments with automatic failover.

URL format: redis+sentinel://[username:password@]host1:port1,host2:port2/service_name[/db]

- Add Sentinel URL parsing in RedisConnectionFactory
- Support both sync and async Redis connections via Sentinel
- Add comprehensive unit tests for Sentinel URL handling

Fixes #213
@jit-ci
Copy link

jit-ci bot commented Sep 26, 2025

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@bsbodden bsbodden self-assigned this Sep 26, 2025
@bsbodden bsbodden requested a review from rbs333 September 26, 2025 16:14
@bsbodden bsbodden merged commit 27dabc0 into main Sep 29, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support URL based connection to Redis through Sentinel discovery service

3 participants