@Factory public class NamedRedisClientFactory extends AbstractRedisClientFactory
RedisClient
instances from NamedRedisServersConfiguration
instances.Constructor and Description |
---|
NamedRedisClientFactory() |
Modifier and Type | Method and Description |
---|---|
io.lettuce.core.RedisClient |
redisClient(AbstractRedisConfiguration config)
Creates the
RedisClient from the configuration. |
io.lettuce.core.api.StatefulRedisConnection<String,String> |
redisConnection(io.lettuce.core.RedisClient client)
Creates the
StatefulRedisConnection from the RedisClient . |
io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String> |
redisPubSubConnection(io.lettuce.core.RedisClient redisClient)
Creates the
StatefulRedisPubSubConnection from the RedisClient . |
@Bean(preDestroy="shutdown") @EachBean(value=NamedRedisServersConfiguration.class) public io.lettuce.core.RedisClient redisClient(AbstractRedisConfiguration config)
AbstractRedisClientFactory
RedisClient
from the configuration.redisClient
in class AbstractRedisClientFactory
config
- The configurationRedisClient
@Bean(preDestroy="close") @EachBean(value=NamedRedisServersConfiguration.class) public io.lettuce.core.api.StatefulRedisConnection<String,String> redisConnection(io.lettuce.core.RedisClient client)
AbstractRedisClientFactory
StatefulRedisConnection
from the RedisClient
.redisConnection
in class AbstractRedisClientFactory
client
- The RedisClient
StatefulRedisConnection
@Bean(preDestroy="close") @EachBean(value=NamedRedisServersConfiguration.class) public io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String> redisPubSubConnection(io.lettuce.core.RedisClient redisClient)
AbstractRedisClientFactory
StatefulRedisPubSubConnection
from the RedisClient
.redisPubSubConnection
in class AbstractRedisClientFactory
redisClient
- The RedisClient
StatefulRedisPubSubConnection