List of usage examples for org.springframework.data.redis.connection.lettuce LettuceClusterConnection LettuceClusterConnection
public LettuceClusterConnection(LettuceConnectionProvider connectionProvider, ClusterCommandExecutor executor)
From source file:org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.java
@Override public RedisClusterConnection getClusterConnection() { if (!isClusterAware()) { throw new InvalidDataAccessApiUsageException("Cluster is not configured!"); }/*from w w w .j av a2s. c o m*/ return new LettuceClusterConnection((RedisClusterClient) client, clusterCommandExecutor); }