feat: add redis sentinel support#6255
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughRedis initialization now supports standalone and Redis Sentinel modes. The example environment file documents Sentinel addresses, master name, credentials, database, and pool-related settings, while the Redis client selects and configures the appropriate connection mode. ChangesRedis Sentinel support
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Environment
participant InitRedisClient
participant initRedisSentinel
participant RedisSentinel
Environment->>InitRedisClient: Provide Redis and Sentinel settings
InitRedisClient->>initRedisSentinel: Select Sentinel mode
initRedisSentinel->>RedisSentinel: Build failover client options
RedisSentinel-->>InitRedisClient: Return configured Redis client
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Important
📝 变更描述 / Description
增加 redis 哨兵支持
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)
Summary by CodeRabbit
New Features
Documentation