Package | Description |
---|---|
org.springframework.data.redis.connection |
Connection package providing low-level abstractions for interacting with
the various Redis 'drivers'/libraries.
|
org.springframework.data.redis.connection.jedis |
Connection package for Jedis library.
|
org.springframework.data.redis.connection.lettuce |
Connection package for Lettuce Redis client.
|
org.springframework.data.redis.core |
Core package for integrating Redis with Spring concepts.
|
org.springframework.data.redis.core.script |
Modifier and Type | Interface and Description |
---|---|
interface |
RedisClusterConnection
RedisClusterConnection allows sending commands to dedicated nodes within the cluster. |
interface |
StringRedisConnection
Convenience extension of
RedisConnection that accepts and returns String s instead of byte arrays. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRedisConnection |
class |
DefaultStringRedisConnection
Default implementation of
StringRedisConnection . |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
RedisConnectionFactory.getConnection()
Provides a suitable connection for interacting with Redis.
|
RedisConnection |
DefaultStringRedisConnection.getDelegate() |
RedisConnection |
DecoratedRedisConnection.getDelegate()
Gets the underlying
RedisConnection . |
Constructor and Description |
---|
DefaultStringRedisConnection(RedisConnection connection)
Constructs a new
DefaultStringRedisConnection instance. |
DefaultStringRedisConnection(RedisConnection connection,
RedisSerializer<String> serializer)
Constructs a new
DefaultStringRedisConnection instance. |
Modifier and Type | Class and Description |
---|---|
class |
JedisClusterConnection
RedisClusterConnection implementation on top of JedisCluster . |
class |
JedisConnection
RedisConnection implementation on top of Jedis library. |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
JedisConnectionFactory.getConnection() |
Modifier and Type | Class and Description |
---|---|
class |
LettuceClusterConnection |
class |
LettuceConnection
RedisConnection implementation on top of Lettuce Redis
client. |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
LettuceConnectionFactory.getConnection() |
Modifier and Type | Method and Description |
---|---|
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory)
Binds a new Redis connection (from the given factory) to the current thread, if none is already bound.
|
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory,
boolean enableTranactionSupport)
Binds a new Redis connection (from the given factory) to the current thread, if none is already bound and enables
transaction support if
enableTranactionSupport is set to true. |
protected RedisConnection |
RedisTemplate.createRedisConnectionProxy(RedisConnection pm) |
static RedisConnection |
RedisConnectionUtils.doGetConnection(RedisConnectionFactory factory,
boolean allowCreate,
boolean bind,
boolean enableTransactionSupport)
Gets a Redis connection.
|
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory)
Gets a Redis connection from the given factory.
|
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory,
boolean enableTranactionSupport)
Gets a Redis connection from the given factory.
|
protected RedisConnection |
StringRedisTemplate.preProcessConnection(RedisConnection connection,
boolean existingConnection) |
protected RedisConnection |
RedisTemplate.preProcessConnection(RedisConnection connection,
boolean existingConnection)
Processes the connection (before any settings are executed on it).
|
Modifier and Type | Method and Description |
---|---|
protected RedisConnection |
RedisTemplate.createRedisConnectionProxy(RedisConnection pm) |
T |
RedisCallback.doInRedis(RedisConnection connection)
Gets called by
RedisTemplate with an active Redis connection. |
static boolean |
RedisConnectionUtils.isConnectionTransactional(RedisConnection conn,
RedisConnectionFactory connFactory)
Return whether the given Redis connection is transactional, that is, bound to the current thread by Spring's
transaction facilities.
|
protected <T> T |
RedisTemplate.postProcessResult(T result,
RedisConnection conn,
boolean existingConnection) |
protected RedisConnection |
StringRedisTemplate.preProcessConnection(RedisConnection connection,
boolean existingConnection) |
protected RedisConnection |
RedisTemplate.preProcessConnection(RedisConnection connection,
boolean existingConnection)
Processes the connection (before any settings are executed on it).
|
static void |
RedisConnectionUtils.releaseConnection(RedisConnection conn,
RedisConnectionFactory factory)
Closes the given connection, created via the given factory if not managed externally (i.e. not bound to the
thread).
|
Modifier and Type | Method and Description |
---|---|
protected <T> T |
DefaultScriptExecutor.eval(RedisConnection connection,
RedisScript<T> script,
ReturnType returnType,
int numKeys,
byte[][] keysAndArgs,
RedisSerializer<T> resultSerializer) |
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.