Uses of Interface
org.springframework.data.redis.connection.RedisConnectionFactory
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.
Base package for Redis message listener / pubsub container facility
Small toolkit mirroring the
java.util.atomic
package in Redis.-
Uses of RedisConnectionFactory in org.springframework.data.redis.cache
Modifier and TypeMethodDescriptionRedisCacheManager.builder
(RedisConnectionFactory connectionFactory) Factory method returning a Builder used to construct and configure aRedisCacheManager
initialized with the givenRedisConnectionFactory
.static RedisCacheManager
RedisCacheManager.create
(RedisConnectionFactory connectionFactory) Factory method used to construct a newRedisCacheManager
initialized with the givenRedisConnectionFactory
and usingdefaults
for caching.RedisCacheManager.RedisCacheManagerBuilder.fromConnectionFactory
(RedisConnectionFactory connectionFactory) Factory method returning a new Builder used to create and configure aRedisCacheManager
using the givenRedisConnectionFactory
.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, Duration sleepTime, RedisCacheWriter.TtlFunction lockTtlFunction, BatchStrategy batchStrategy) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.nonLockingRedisCacheWriter
(RedisConnectionFactory connectionFactory) Create newRedisCacheWriter
without locking behavior.static RedisCacheWriter
RedisCacheWriter.nonLockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriter
without locking behavior. -
Uses of RedisConnectionFactory in org.springframework.data.redis.connection
Modifier and TypeMethodDescriptionstatic boolean
ConnectionUtils.isAsync
(RedisConnectionFactory connectionFactory) static boolean
ConnectionUtils.isJedis
(RedisConnectionFactory connectionFactory) static boolean
ConnectionUtils.isLettuce
(RedisConnectionFactory connectionFactory) -
Uses of RedisConnectionFactory in org.springframework.data.redis.connection.jedis
-
Uses of RedisConnectionFactory in org.springframework.data.redis.connection.lettuce
-
Uses of RedisConnectionFactory in org.springframework.data.redis.core
Modifier and TypeMethodDescriptionRedisAccessor.getConnectionFactory()
Returns the factory configured to acquire connections and perform operations on the connected Redis instance.RedisAccessor.getRequiredConnectionFactory()
Returns the requiredRedisConnectionFactory
, throwing anIllegalStateException
if theRedisConnectionFactory
is not set.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.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
.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.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).void
RedisAccessor.setConnectionFactory
(RedisConnectionFactory connectionFactory) Sets the factory used to acquire connections and perform operations on the connected Redis instance.static void
RedisConnectionUtils.unbindConnection
(RedisConnectionFactory factory) Unbinds and closes the connection (if any) associated with the given factory from closure-scope.ModifierConstructorDescriptionStringRedisTemplate
(RedisConnectionFactory connectionFactory) Constructs a newStringRedisTemplate
instance ready to be used. -
Uses of RedisConnectionFactory in org.springframework.data.redis.listener
Modifier and TypeMethodDescriptionRedisMessageListenerContainer.getConnectionFactory()
Returns the connectionFactory.Modifier and TypeMethodDescriptionvoid
RedisMessageListenerContainer.setConnectionFactory
(RedisConnectionFactory connectionFactory) -
Uses of RedisConnectionFactory in org.springframework.data.redis.stream
Modifier and TypeMethodDescriptionStreamMessageListenerContainer.create
(RedisConnectionFactory connectionFactory) static <K,
V extends Record<K, ?>>
StreamMessageListenerContainer<K,V> StreamMessageListenerContainer.create
(RedisConnectionFactory connectionFactory, StreamMessageListenerContainer.StreamMessageListenerContainerOptions<K, V> options) -
Uses of RedisConnectionFactory in org.springframework.data.redis.support.atomic
ModifierConstructorDescriptionRedisAtomicDouble
(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicDouble
instance.RedisAtomicDouble
(String redisCounter, RedisConnectionFactory factory, double initialValue) Constructs a newRedisAtomicDouble
instance with ainitialValue
that overwrites the existing value.RedisAtomicInteger
(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicInteger
instance.RedisAtomicInteger
(String redisCounter, RedisConnectionFactory factory, int initialValue) Constructs a newRedisAtomicInteger
instance with ainitialValue
that overwrites the existing value.RedisAtomicLong
(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicLong
instance.RedisAtomicLong
(String redisCounter, RedisConnectionFactory factory, long initialValue) Constructs a newRedisAtomicLong
instance with ainitialValue
that overwrites the existing value atredisCounter
.