jetcache icon indicating copy to clipboard operation
jetcache copied to clipboard

您好作者,现在连接时总是提示没有设置密码请问是什么原因呢?

Open lgcrr opened this issue 2 years ago • 3 comments

remote: # 指定远程缓存 default: type: redis.lettuce keyConvertor: fastjson # key转换器的全局配置,当前只有一个已经实现的keyConvertor:fastjson。仅当使用@CreateCache且缓存类型为LOCAL时可以指定为none,此时通过equals方法来识别key。方法缓存必须指定keyConvertor valueEncoder: java #序列化器的全局配置。仅remote类型的缓存需要指定,可选java和kryo,默认java valueDecoder: java #序列化器的全局配置。仅remote类型的缓存需要指定,可选java和kryo,默认java expireAfterWriteInMillis: 600000 #写入缓存十分钟后自动失效#以毫秒为单位指定超时时间的全局配置 limit: 10000 uri: redis-sentinel://${spring.redis.password}@xxx:26380,xxx:26379,xxx:26381/?sentinelMasterId=${spring.redis.sentinel.master}

springboot 集成哨兵 模式 启动提示如下 : Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO AUTH option can be used to authenticate the client and select the RESP protocol version at the same time 我是 redis 7版本 跟新版本有关系吗?

lgcrr avatar Aug 18 '22 08:08 lgcrr

lettuce的uri格式看看lettuce的文档:https://github.com/lettuce-io/lettuce-core/wiki

jetcache的yml方式初始化lettuce在RedisLettuceAutoConfiguration类

yml如果有特殊字符需要转义参考下相关资料

areyouok avatar Aug 18 '22 08:08 areyouok

lettuce的uri格式看看lettuce的文档:https://github.com/lettuce-io/lettuce-core/wiki

jetcache的yml方式初始化lettuce在RedisLettuceAutoConfiguration类

yml如果有特殊字符需要转义参考下相关资料

uri: redis-sentinel://default:password@ip:26379/1?sentinelMasterId=mymaster

redis-sentinel :// [[username :] password@] host1[:port1] [, host2[:port2]] [, hostN[:portN]] [/database] [?[timeout=timeout[d|h|m|s|ms|us|ns]] [&sentinelMasterId=sentinelMasterId]

这种格式没问题呀

lgcrr avatar Aug 18 '22 09:08 lgcrr

password不能含有@

bigbenfather avatar Feb 01 '23 08:02 bigbenfather