Esempio 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());
   }
 }
Esempio n. 2
0
 public Jedis(String host, int port, int timeout) {
   client = new Client(host, port);
   client.setTimeout(timeout);
 }