public class JedisConnector extends Object implements AutoCloseable
| Constructor and Description |
|---|
JedisConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
redis.clients.jedis.Jedis |
getJedis() |
redis.clients.jedis.JedisCluster |
getJedisCluster() |
String |
getRedisHostsAndPorts()
Get Redis' hosts and ports scheme (format
host1:port1,host2:port2). |
String |
getRedisPassword() |
JedisConnector |
init() |
JedisConnector |
setRedisHostsAndPorts(String redisHostsAndPorts)
Set Redis' hosts and ports scheme (format
host1:port1,host2:port2). |
JedisConnector |
setRedisPassword(String redisPassword) |
public String getRedisHostsAndPorts()
host1:port1,host2:port2).public JedisConnector setRedisHostsAndPorts(String redisHostsAndPorts)
host1:port1,host2:port2).redisHostsAndPorts - public String getRedisPassword()
public JedisConnector setRedisPassword(String redisPassword)
public redis.clients.jedis.Jedis getJedis()
public redis.clients.jedis.JedisCluster getJedisCluster()
public JedisConnector init()
public void destroy()
public void close()
close in interface AutoCloseableCopyright © 2018 DDTH. All rights reserved.