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:
Christoph Strobl
2019-10-30 09:06:38 +01:00
parent 049f4d78ab
commit 90be8d388e
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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());