@Requires(property="redis.uris") @Singleton @Factory public class DefaultRedisClusterClientFactory extends Object
"redis.uris"
setting.Constructor and Description |
---|
DefaultRedisClusterClientFactory() |
Modifier and Type | Method and Description |
---|---|
io.lettuce.core.cluster.RedisClusterClient |
redisClient(AbstractRedisConfiguration config)
Create the client based on config URIs.
|
io.lettuce.core.cluster.api.StatefulRedisClusterConnection<String,String> |
redisConnection(io.lettuce.core.cluster.RedisClusterClient redisClient)
Establish redis connection.
|
io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String> |
redisPubSubConnection(io.lettuce.core.cluster.RedisClusterClient redisClient) |
@Bean(preDestroy="shutdown") @Singleton @Primary public io.lettuce.core.cluster.RedisClusterClient redisClient(@Primary AbstractRedisConfiguration config)
config
- config@Bean(preDestroy="close") @Singleton @Primary public io.lettuce.core.cluster.api.StatefulRedisClusterConnection<String,String> redisConnection(@Primary io.lettuce.core.cluster.RedisClusterClient redisClient)
redisClient
- client.@Bean(preDestroy="close") @Singleton public io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String> redisPubSubConnection(@Primary io.lettuce.core.cluster.RedisClusterClient redisClient)
redisClient
- redisClient