DATAREDIS-537 - Add support for Redis Cluster and SSL.

Support SSL, StartTLS and VerifyPeer flags.

Original Pull Request: #210
This commit is contained in:
Mark Paluch
2016-07-20 12:07:07 +02:00
committed by Christoph Strobl
parent 7a713aa2a9
commit c7c9a8aab5
2 changed files with 70 additions and 0 deletions

View File

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