DATAREDIS-1045 - Fix target URI when setting password.
...and update reference documentation to reflect the changes. Original Pull Request: #490
This commit is contained in:
@@ -178,6 +178,11 @@ public RedisConnectionFactory lettuceConnectionFactory() {
|
||||
|
||||
Sometimes, direct interaction with one of the Sentinels is required. Using `RedisConnectionFactory.getSentinelConnection()` or `RedisConnection.getSentinelCommands()` gives you access to the first active Sentinel configured.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Configuration options like password, timeouts, SSL... also get applied to Redis Sentinel when using https://lettuce.io/[Lettuce].
|
||||
====
|
||||
|
||||
[[redis:template]]
|
||||
== Working with Objects through RedisTemplate
|
||||
|
||||
|
||||
@@ -1080,7 +1080,7 @@ public class LettuceConnectionFactory
|
||||
|
||||
applyToAll(redisUri, it -> {
|
||||
|
||||
getRedisPassword().toOptional().ifPresent(redisUri::setPassword);
|
||||
getRedisPassword().toOptional().ifPresent(it::setPassword);
|
||||
clientConfiguration.getClientName().ifPresent(it::setClientName);
|
||||
|
||||
it.setSsl(clientConfiguration.isUseSsl());
|
||||
|
||||
Reference in New Issue
Block a user