DATAREDIS-537 - Add support for Redis Cluster and SSL.
Support SSL, StartTLS and VerifyPeer flags. Original Pull Request: #210
This commit is contained in:
committed by
Christoph Strobl
parent
7a713aa2a9
commit
c7c9a8aab5
@@ -565,6 +565,10 @@ public class LettuceConnectionFactory implements InitializingBean, DisposableBea
|
||||
|
||||
RedisURI redisURI = new RedisURI(node.getHost(), node.getPort(), timeout, TimeUnit.MILLISECONDS);
|
||||
|
||||
redisURI.setSsl(useSsl);
|
||||
redisURI.setVerifyPeer(verifyPeer);
|
||||
redisURI.setStartTls(startTls);
|
||||
|
||||
if (StringUtils.hasText(password)) {
|
||||
redisURI.setPassword(password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user