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.jredis |
Connection package for JRedis library.
|
org.springframework.data.redis.connection.lettuce |
Connection package for Lettuce Redis client.
|
org.springframework.data.redis.connection.srp |
Connection package for spullara Redis Protocol library.
|
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.support.atomic |
Small toolkit mirroring the
java.util.atomic package in Redis. |
Modifier and Type | Method and Description |
---|---|
static boolean |
ConnectionUtils.isAsync(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isJedis(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isJredis(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isLettuce(RedisConnectionFactory connectionFactory) |
static boolean |
ConnectionUtils.isSrp(RedisConnectionFactory connectionFactory) |
Modifier and Type | Class and Description |
---|---|
class |
JedisConnectionFactory
Connection factory creating Jedis based connections.
|
Modifier and Type | Class and Description |
---|---|
class |
JredisConnectionFactory
Deprecated.
since 1.7. Will be removed in subsequent version.
|
Modifier and Type | Class and Description |
---|---|
class |
LettuceConnectionFactory
Connection factory creating Lettuce-based connections.
|
Modifier and Type | Class and Description |
---|---|
class |
SrpConnectionFactory
Deprecated.
since 1.7. Will be removed in subsequent version.
|
Modifier and Type | Method and Description |
---|---|
RedisConnectionFactory |
RedisAccessor.getConnectionFactory()
Returns the connectionFactory.
|
Modifier and Type | Method and Description |
---|---|
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory)
Binds a new Redis connection (from the given factory) to the current thread, if none is already bound.
|
static RedisConnection |
RedisConnectionUtils.bindConnection(RedisConnectionFactory factory,
boolean enableTranactionSupport)
Binds a new Redis connection (from the given factory) to the current thread, if none is already bound and enables
transaction support if
enableTranactionSupport is set to true. |
static RedisConnection |
RedisConnectionUtils.doGetConnection(RedisConnectionFactory factory,
boolean allowCreate,
boolean bind,
boolean enableTransactionSupport)
Gets a Redis connection.
|
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory)
Gets a Redis connection from the given factory.
|
static RedisConnection |
RedisConnectionUtils.getConnection(RedisConnectionFactory factory,
boolean enableTranactionSupport)
Gets a Redis connection from the given factory.
|
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 connection, created via the given factory if not managed externally (i.e. not bound to the
thread).
|
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.
|
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) |
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. |
RedisAtomicInteger(String redisCounter,
RedisConnectionFactory factory)
Constructs a new
RedisAtomicInteger instance. |
RedisAtomicInteger(String redisCounter,
RedisConnectionFactory factory,
int initialValue)
Constructs a new
RedisAtomicInteger instance. |
RedisAtomicLong(String redisCounter,
RedisConnectionFactory factory)
Constructs a new
RedisAtomicLong instance. |
RedisAtomicLong(String redisCounter,
RedisConnectionFactory factory,
long initialValue)
Constructs a new
RedisAtomicLong instance. |
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.