Example usage for org.springframework.data.redis.connection.lettuce LettuceConnection LettuceConnection

List of usage examples for org.springframework.data.redis.connection.lettuce LettuceConnection LettuceConnection

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection.lettuce LettuceConnection LettuceConnection.

Prototype

@Deprecated
public LettuceConnection(@Nullable StatefulRedisConnection<byte[], byte[]> sharedConnection, long timeout,
        @Nullable AbstractRedisClient client, @Nullable LettucePool pool, int defaultDbIndex) 

Source Link

Usage

From source file:org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.java

public RedisConnection getConnection() {

    if (isClusterAware()) {
        return getClusterConnection();
    }/*from   w  w w .j a v a2s .  c o  m*/

    LettuceConnection connection = new LettuceConnection(getSharedConnection(), timeout, client, pool, dbIndex);
    connection.setConvertPipelineAndTxResults(convertPipelineAndTxResults);
    return connection;
}