Ejemplo n.º 1
0
 public Jedis(ShardInfo shardInfo) {
   client = new Client(shardInfo.getHost(), shardInfo.getPort());
   client.setTimeout(shardInfo.getTimeout());
   if (shardInfo.getPassword() != null) {
     this.auth(shardInfo.getPassword());
   }
 }
Ejemplo n.º 2
0
 public Jedis(String host, int port, int timeout) {
   client = new Client(host, port);
   client.setTimeout(timeout);
 }