public class RedisConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected redis.clients.jedis.Jedis |
jedis
Java Redis CLIENT.
|
protected String |
redisHost
redis host.
|
protected String |
redisPassword
used in protected redis cluster.
|
protected int |
redisport
redis port.
|
| Constructor and Description |
|---|
RedisConnection()
Default constructor.
|
RedisConnection(String predisHost,
int predisPort)
Constructor for unauthenticated connection.
|
RedisConnection(String predisHost,
int predisPort,
String password)
Constructor for authenticated connection.
|
| Modifier and Type | Method and Description |
|---|---|
redis.clients.jedis.Jedis |
getJedis()
Getter accessor for attribute 'jedis'.
|
String |
getRedisHost()
Getter accessor for attribute 'redisHost'.
|
String |
getRedisPassword()
Getter accessor for attribute 'redisPassword'.
|
int |
getRedisport()
Getter accessor for attribute 'redisport'.
|
void |
setRedisHost(String redisHost)
Setter accessor for attribute 'redisHost'.
|
void |
setRedisPassword(String redisPassword)
Setter accessor for attribute 'redisPassword'.
|
void |
setRedisport(int redisport)
Setter accessor for attribute 'redisport'.
|
protected String redisHost
protected int redisport
protected String redisPassword
protected redis.clients.jedis.Jedis jedis
public RedisConnection()
public RedisConnection(String predisHost, int predisPort)
predisHost - hostpredisPort - portpublic String getRedisHost()
public int getRedisport()
public redis.clients.jedis.Jedis getJedis()
public String getRedisPassword()
public void setRedisPassword(String redisPassword)
redisPassword - the redisPassword to setpublic void setRedisHost(String redisHost)
redisHost - the redisHost to setpublic void setRedisport(int redisport)
redisport - the redisport to setCopyright © 2013–2016 FF4J. All rights reserved.