Uses of Interface
org.springframework.data.redis.connection.RedisConnection
Package
Description
Package providing a Redis implementation for Spring
cache
abstraction.
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
Connection package for Jedis library.
Connection package for Lettuce Redis client.
Core package for integrating Redis with Spring concepts.
Lua script execution abstraction.
-
Uses of RedisConnection in org.springframework.data.redis.cache
Modifier and TypeMethodDescriptionlong
BatchStrategy.cleanCache
(RedisConnection connection, String name, byte[] pattern) Remove all keys following the given pattern. -
Uses of RedisConnection in org.springframework.data.redis.connection
Modifier and TypeInterfaceDescriptioninterface
RedisClusterConnection
allows sending commands to dedicated nodes within the cluster.interface
Convenience extension ofRedisConnection
that accepts and returnsString
s instead of byte arrays.Modifier and TypeMethodDescriptionRedisConnectionFactory.getConnection()
Returns a suitableconnection
for interacting with Redis.DecoratedRedisConnection.getDelegate()
Gets the underlyingRedisConnection
.DefaultStringRedisConnection.getDelegate()
ModifierConstructorDescriptionDefaultStringRedisConnection
(RedisConnection connection) Constructs a newDefaultStringRedisConnection
instance.DefaultStringRedisConnection
(RedisConnection connection, RedisSerializer<String> serializer) Constructs a newDefaultStringRedisConnection
instance. -
Uses of RedisConnection in org.springframework.data.redis.connection.jedis
Modifier and TypeClassDescriptionclass
RedisClusterConnection
implementation on top ofJedisCluster
.
Uses the nativeJedisCluster
api where possible and falls back to direct node communication usingJedis
where needed.class
RedisConnection
implementation on top of Jedis library. -
Uses of RedisConnection in org.springframework.data.redis.connection.lettuce
-
Uses of RedisConnection in org.springframework.data.redis.core
Modifier and TypeInterfaceDescriptionstatic interface
Subinterface ofRedisConnection
to be implemented byRedisConnection
proxies.Modifier and TypeMethodDescriptionstatic RedisConnection
RedisConnectionUtils.bindConnection
(RedisConnectionFactory factory) Obtain aRedisConnection
from the givenRedisConnectionFactory
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 aRedisConnection
from the givenRedisConnectionFactory
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 aRedisConnection
from the givenRedisConnectionFactory
.static RedisConnection
RedisConnectionUtils.getConnection
(RedisConnectionFactory factory) Obtain aRedisConnection
from the givenRedisConnectionFactory
.static RedisConnection
RedisConnectionUtils.getConnection
(RedisConnectionFactory factory, boolean transactionSupport) Obtain aRedisConnection
from the givenRedisConnectionFactory
.RedisConnectionUtils.RedisConnectionProxy.getTargetConnection()
Return the targetRedisConnection
of this proxy.protected RedisConnection
RedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) Processes the connection (before any settings are executed on it).protected RedisConnection
StringRedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) Modifier and TypeMethodDescriptionprotected RedisConnection
RedisTemplate.createRedisConnectionProxy
(RedisConnection connection) RedisCallback.doInRedis
(RedisConnection connection) Method called byRedisTemplate
with an activeRedisConnection
.static boolean
RedisConnectionUtils.isConnectionTransactional
(RedisConnection connection, RedisConnectionFactory connectionFactory) 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
RedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) Processes the connection (before any settings are executed on it).protected RedisConnection
StringRedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) static void
RedisConnectionUtils.releaseConnection
(RedisConnection conn, RedisConnectionFactory factory) Closes the givenRedisConnection
, created via the given factory if not managed externally (i.e. not bound to the transaction). -
Uses of RedisConnection in org.springframework.data.redis.core.script
Modifier and TypeMethodDescriptionprotected <T> T
DefaultScriptExecutor.eval
(RedisConnection connection, RedisScript<T> script, ReturnType returnType, int numKeys, byte[][] keysAndArgs, RedisSerializer<T> resultSerializer)