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