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.
|
RedisSentinelConnection |
getSentinelConnection()
Provides a suitable connection for interacting with Redis Sentinel.
|
translateExceptionIfPossible
RedisConnection getConnection()
IllegalStateException
- if the connection factory requires initialization and the factory was not yet
initialized.RedisClusterConnection getClusterConnection()
IllegalStateException
- if the connection factory requires initialization and the factory was not yet
initialized.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()
IllegalStateException
- if the connection factory requires initialization and the factory was not yet
initialized.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.