Uses of Interface
org.springframework.data.redis.connection.RedisConnectionFactory
Packages that use 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
Methods in org.springframework.data.redis.cache with parameters of type RedisConnectionFactoryModifier and TypeMethodDescriptionRedisCacheManager.builder(RedisConnectionFactory connectionFactory) Factory method returning a Builder used to construct and configure aRedisCacheManagerinitialized with the givenRedisConnectionFactory.static RedisCacheManagerRedisCacheManager.create(RedisConnectionFactory connectionFactory) Factory method used to construct a newRedisCacheManagerinitialized with the givenRedisConnectionFactoryand usingdefaultsfor caching.RedisCacheManager.RedisCacheManagerBuilder.fromConnectionFactory(RedisConnectionFactory connectionFactory) Factory method returning a new Builder used to create and configure aRedisCacheManagerusing the givenRedisConnectionFactory.static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory, Duration sleepTime, RedisCacheWriter.TtlFunction lockTtlFunction, BatchStrategy batchStrategy) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory) Create newRedisCacheWriterwithout locking behavior.static RedisCacheWriterRedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriterwithout locking behavior. -
Uses of RedisConnectionFactory in org.springframework.data.redis.connection
Methods in org.springframework.data.redis.connection with parameters of type RedisConnectionFactoryModifier and TypeMethodDescriptionstatic booleanConnectionUtils.isAsync(RedisConnectionFactory connectionFactory) static booleanConnectionUtils.isJedis(RedisConnectionFactory connectionFactory) static booleanConnectionUtils.isLettuce(RedisConnectionFactory connectionFactory) -
Uses of RedisConnectionFactory in org.springframework.data.redis.connection.jedis
Classes in org.springframework.data.redis.connection.jedis that implement RedisConnectionFactory -
Uses of RedisConnectionFactory in org.springframework.data.redis.connection.lettuce
Classes in org.springframework.data.redis.connection.lettuce that implement RedisConnectionFactory -
Uses of RedisConnectionFactory in org.springframework.data.redis.core
Methods in org.springframework.data.redis.core that return RedisConnectionFactoryModifier and TypeMethodDescriptionRedisAccessor.getConnectionFactory()Returns the factory configured to acquire connections and perform operations on the connected Redis instance.RedisAccessor.getRequiredConnectionFactory()Returns the requiredRedisConnectionFactory, throwing anIllegalStateExceptionif theRedisConnectionFactoryis not set.Methods in org.springframework.data.redis.core with parameters of type RedisConnectionFactoryModifier and TypeMethodDescriptionstatic RedisConnectionRedisConnectionUtils.bindConnection(RedisConnectionFactory factory) Obtain aRedisConnectionfrom the givenRedisConnectionFactoryand binds the connection to the current thread to be used in closure-scope, if none is already bound.static RedisConnectionRedisConnectionUtils.bindConnection(RedisConnectionFactory factory, boolean transactionSupport) Obtain aRedisConnectionfrom the givenRedisConnectionFactoryand binds the connection to the current thread to be used in closure-scope, if none is already bound.static RedisConnectionRedisConnectionUtils.doGetConnection(RedisConnectionFactory factory, boolean allowCreate, boolean bind, boolean transactionSupport) Actually obtain aRedisConnectionfrom the givenRedisConnectionFactory.static RedisConnectionRedisConnectionUtils.getConnection(RedisConnectionFactory factory) Obtain aRedisConnectionfrom the givenRedisConnectionFactory.static RedisConnectionRedisConnectionUtils.getConnection(RedisConnectionFactory factory, boolean transactionSupport) Obtain aRedisConnectionfrom the givenRedisConnectionFactory.static booleanRedisConnectionUtils.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 voidRedisConnectionUtils.releaseConnection(RedisConnection conn, RedisConnectionFactory factory) Closes the givenRedisConnection, created via the given factory if not managed externally (i.e. not bound to the transaction).voidRedisAccessor.setConnectionFactory(RedisConnectionFactory connectionFactory) Sets the factory used to acquire connections and perform operations on the connected Redis instance.static voidRedisConnectionUtils.unbindConnection(RedisConnectionFactory factory) Unbinds and closes the connection (if any) associated with the given factory from closure-scope.Constructors in org.springframework.data.redis.core with parameters of type RedisConnectionFactoryModifierConstructorDescriptionStringRedisTemplate(RedisConnectionFactory connectionFactory) Constructs a newStringRedisTemplateinstance ready to be used. -
Uses of RedisConnectionFactory in org.springframework.data.redis.listener
Methods in org.springframework.data.redis.listener that return RedisConnectionFactoryModifier and TypeMethodDescriptionRedisMessageListenerContainer.getConnectionFactory()Returns the connectionFactory.Methods in org.springframework.data.redis.listener with parameters of type RedisConnectionFactoryModifier and TypeMethodDescriptionvoidRedisMessageListenerContainer.setConnectionFactory(RedisConnectionFactory connectionFactory) -
Uses of RedisConnectionFactory in org.springframework.data.redis.stream
Methods in org.springframework.data.redis.stream with parameters of type RedisConnectionFactoryModifier 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
Constructors in org.springframework.data.redis.support.atomic with parameters of type RedisConnectionFactoryModifierConstructorDescriptionRedisAtomicDouble(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicDoubleinstance.RedisAtomicDouble(String redisCounter, RedisConnectionFactory factory, double initialValue) Constructs a newRedisAtomicDoubleinstance with ainitialValuethat overwrites the existing value.RedisAtomicInteger(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicIntegerinstance.RedisAtomicInteger(String redisCounter, RedisConnectionFactory factory, int initialValue) Constructs a newRedisAtomicIntegerinstance with ainitialValuethat overwrites the existing value.RedisAtomicLong(String redisCounter, RedisConnectionFactory factory) Constructs a newRedisAtomicLonginstance.RedisAtomicLong(String redisCounter, RedisConnectionFactory factory, long initialValue) Constructs a newRedisAtomicLonginstance with ainitialValuethat overwrites the existing value atredisCounter.