Added password to Jedis, JedisPool and ShardedJedis constructor for easier and more efficient usage

This commit is contained in:
Jonathan Leibiusky
2010-09-14 16:43:48 -03:00
parent 708ae8a56e
commit 224555afd2
6 changed files with 53 additions and 21 deletions

View File

@@ -352,10 +352,6 @@ public class ShardedJedis extends Sharded<Jedis> {
}
protected Jedis create(ShardInfo shard) {
Jedis c = new Jedis(shard.getHost(), shard.getPort());
if (shard.getPassword() != null) {
c.auth(shard.getPassword());
}
return c;
return new Jedis(shard);
}
}