public class RedisCommandsContainerBuilder extends Object
The binary version of container builder which helps abstraction of two env. - single instance or Redis Cluster.
Modifier and Type | Field and Description |
---|---|
static redis.clients.jedis.JedisPoolConfig |
DEFAULT_POOL_CONFIG |
Constructor and Description |
---|
RedisCommandsContainerBuilder() |
Modifier and Type | Method and Description |
---|---|
static RedisCommandsInstanceContainer |
build(JedisClusterConfig config)
Builds container for Redis Cluster environment.
|
static RedisCommandsInstanceContainer |
build(JedisPoolConfig config)
Builds container for single Redis environment.
|
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
public static RedisCommandsInstanceContainer build(JedisPoolConfig config)
Builds container for single Redis environment.
config
- configuration for JedisPoolpublic static RedisCommandsInstanceContainer build(JedisClusterConfig config)
Builds container for Redis Cluster environment.
config
- configuration for JedisClusterCopyright © 2022 The Apache Software Foundation. All Rights Reserved.