public class JedisCommandsContainerBuilder extends Object
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 |
---|
JedisCommandsContainerBuilder() |
Modifier and Type | Method and Description |
---|---|
static JedisCommandsInstanceContainer |
build(JedisClusterConfig config)
Builds container for Redis Cluster environment.
|
static JedisCommandsInstanceContainer |
build(JedisPoolConfig config)
Builds container for single Redis environment.
|
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
public static JedisCommandsInstanceContainer build(JedisPoolConfig config)
Builds container for single Redis environment.
config
- configuration for JedisPoolpublic static JedisCommandsInstanceContainer build(JedisClusterConfig config)
Builds container for Redis Cluster environment.
config
- configuration for JedisClusterCopyright © 2019 The Apache Software Foundation. All Rights Reserved.