public interface RedisConnectionFactory extends PersistenceExceptionTranslator
Modifier and Type | Method and Description |
---|---|
RedisClusterConnection |
getClusterConnection()
Provides a suitable connection for interacting with Redis Cluster.
|
RedisConnection |
getConnection()
Provides a suitable connection for interacting with Redis.
|
boolean |
getConvertPipelineAndTxResults()
Specifies if pipelined results should be converted to the expected data type.
|
ReactiveRedisClusterConnection |
getReactiveClusterConnection() |
ReactiveRedisConnection |
getReactiveConnection() |
RedisSentinelConnection |
getSentinelConnection()
Provides a suitable connection for interacting with Redis Sentinel.
|
translateExceptionIfPossible
RedisConnection getConnection()
RedisClusterConnection getClusterConnection()
ReactiveRedisConnection getReactiveConnection()
ReactiveRedisClusterConnection getReactiveClusterConnection()
boolean getConvertPipelineAndTxResults()
RedisConnection.closePipeline()
and {RedisConnection#exec()} will be of the type returned by the underlying
driver This method is mostly for backwards compatibility with 1.0. It is generally always a good idea to allow
results to be converted and deserialized. In fact, this is now the default behavior.RedisSentinelConnection getSentinelConnection()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.