Package | Description |
---|---|
org.springframework.data.redis.cache |
Package providing a Redis implementation for Spring
cache
abstraction.
|
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.listener |
Base package for Redis message listener / pubsub container facility
|
org.springframework.data.redis.stream | |
org.springframework.data.redis.support.atomic |
Small toolkit mirroring the
java.util.atomic package in Redis. |
Modifier and Type | Method and Description |
---|---|
static RedisCacheManager.RedisCacheManagerBuilder |
RedisCacheManager.builder(RedisConnectionFactory connectionFactory)
Entry point for builder style
RedisCacheManager configuration. |
static RedisCacheManager |
RedisCacheManager.create(RedisConnectionFactory connectionFactory)
Create a new
RedisCacheManager with defaults applied. |
static RedisCacheManager.RedisCacheManagerBuilder |
RedisCacheManager.RedisCacheManagerBuilder.fromConnectionFactory(RedisConnectionFactory connectionFactory)
Entry point for builder style
RedisCacheManager configuration. |
static RedisCacheWriter |
RedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory)
Create new
RedisCacheWriter with locking behavior. |
static RedisCacheWriter |
RedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory,
BatchStrategy batchStrategy)
Create new
RedisCacheWriter with locking behavior. |
static RedisCacheWriter |
RedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory)
Create new
RedisCacheWriter without locking behavior. |
static RedisCacheWriter |
RedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory,
BatchStrategy batchStrategy)
Create new
RedisCacheWriter without locking behavior. |
Modifier and Type | Method and Description |
---|---|
static boolean |
ConnectionUtils.isAsync(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isJedis(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isLettuce(RedisConnectionFactory connectionFactory) |
Modifier and Type | Class and Description |
---|---|
class |
JedisConnectionFactory
Connection factory creating Jedis based connections.
|
Modifier and Type | Class and Description |
---|---|
class |
LettuceConnectionFactory
Connection factory creating Lettuce-based connections.
|
Modifier and Type | Method and Description |
---|---|
RedisConnectionFactory |
RedisAccessor.getConnectionFactory()
Returns the connectionFactory.
|
RedisConnectionFactory |
RedisAccessor.getRequiredConnectionFactory()
Returns the required
RedisConnectionFactory or throws IllegalStateException if the connection
factory is not set. |
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. |
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 . |
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.
|
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.
|
void |
RedisAccessor.setConnectionFactory(RedisConnectionFactory connectionFactory)
Sets the connection factory.
|
static void |
RedisConnectionUtils.unbindConnection(RedisConnectionFactory factory)
Unbinds and closes the connection (if any) associated with the given factory from closure-scope.
|
Constructor and Description |
---|
StringRedisTemplate(RedisConnectionFactory connectionFactory)
Constructs a new
StringRedisTemplate instance ready to be used. |
Modifier and Type | Method and Description |
---|---|
RedisConnectionFactory |
RedisMessageListenerContainer.getConnectionFactory()
Returns the connectionFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
RedisMessageListenerContainer.setConnectionFactory(RedisConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
static StreamMessageListenerContainer<String,MapRecord<String,String,String>> |
StreamMessageListenerContainer.create(RedisConnectionFactory connectionFactory)
|
static <K,V extends Record<K,?>> |
StreamMessageListenerContainer.create(RedisConnectionFactory connectionFactory,
StreamMessageListenerContainer.StreamMessageListenerContainerOptions<K,V> options)
|
Constructor and Description |
---|
RedisAtomicDouble(String redisCounter,
RedisConnectionFactory factory)
Constructs a new
RedisAtomicDouble instance. |
RedisAtomicDouble(String redisCounter,
RedisConnectionFactory factory,
double initialValue)
Constructs a new
RedisAtomicDouble instance with a initialValue that overwrites the existing value. |
RedisAtomicInteger(String redisCounter,
RedisConnectionFactory factory)
Constructs a new
RedisAtomicInteger instance. |
RedisAtomicInteger(String redisCounter,
RedisConnectionFactory factory,
int initialValue)
Constructs a new
RedisAtomicInteger instance with a initialValue that overwrites the existing
value. |
RedisAtomicLong(String redisCounter,
RedisConnectionFactory factory)
Constructs a new
RedisAtomicLong instance. |
RedisAtomicLong(String redisCounter,
RedisConnectionFactory factory,
long initialValue)
Constructs a new
RedisAtomicLong instance with a initialValue that overwrites the existing value at
redisCounter . |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.