alibaba / jetcache

JetCache is a Java cache framework.
Apache License 2.0
5.15k stars 1.06k forks source link

当sentinel有密码时 使用lettuce方式 配置文件应该如何配置sentinelPassword? #755

Open mengshaoyu opened 1 year ago

mengshaoyu commented 1 year ago

我的redis哨兵master和sentinel均需要密码,但是lettuce源码解析sentinel URI时 不支持配置 &sentinelPassword= 所以我应如何配置sentinel密码呢?

文档中写的: jetcache: areaInCacheName: false remote: default: type: redis.lettuce keyConvertor: fastjson2 broadcastChannel: projectA uri: redis://127.0.0.1:6379/

uri: redis-sentinel://127.0.0.1:26379,127.0.0.1:26380,127.0.0.1:26381/?sentinelMasterId=mymaster

  #readFrom: slavePreferred
lyx1213 commented 1 year ago

我知道高版本的lettuce6.2.4可以自动读取spring.redis.sentinel.password配置,但是低版本的可以吗?最低使用哪个版本的lettuce?

tanjiancheng commented 1 year ago

同问