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 |
Lua script execution abstraction.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DefaultedRedisClusterConnection |
interface |
DefaultedRedisConnection
DefaultedRedisConnection provides method delegates to Redis*Command interfaces accessible via
RedisConnection . |
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
RedisClusterConnection implementation on top of Lettuce
Redis client. |
class |
LettuceConnection
RedisConnection implementation on top of Lettuce Redis
client. |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
LettuceConnectionFactory.getConnection() |
Modifier and Type | Interface and Description |
---|---|
static interface |
RedisConnectionUtils.RedisConnectionProxy
Subinterface of
RedisConnection to be implemented by RedisConnection proxies. |
Modifier and Type | Method and Description |
---|---|
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory)
Obtain a
RedisConnection from the given RedisConnectionFactory and binds the connection to the
current thread to be used in closure-scope, if none is already bound. |
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory,
boolean transactionSupport)
Obtain a
RedisConnection from the given RedisConnectionFactory and binds the connection to the
current thread to be used in closure-scope, if none is already bound. |
protected RedisConnection |
RedisTemplate.createRedisConnectionProxy(RedisConnection connection) |
static RedisConnection |
RedisConnectionUtils.doGetConnection(RedisConnectionFactory factory,
boolean allowCreate,
boolean bind,
boolean transactionSupport)
Actually obtain a
RedisConnection from the given RedisConnectionFactory . |
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory)
Obtain a
RedisConnection from the given RedisConnectionFactory . |
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory,
boolean transactionSupport)
Obtain a
RedisConnection from the given RedisConnectionFactory . |
RedisConnection |
RedisConnectionUtils.RedisConnectionProxy.getTargetConnection()
Return the target
RedisConnection of this proxy. |
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 connection) |
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
RedisConnection , created via the given factory if not managed externally (i.e. not bound
to the transaction). |
static void |
RedisConnectionUtils.releaseConnection(RedisConnection conn,
RedisConnectionFactory factory,
boolean transactionSupport)
Deprecated.
|
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–2021 Pivotal Software, Inc.. All rights reserved.