Skip to content

Commit

Permalink
Add JedisPool constructor that takes only host string
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 24, 2011
1 parent 6c3ec9f commit e9644a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/redis/clients/jedis/JedisPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ public JedisPool(final GenericObjectPool.Config poolConfig,
null);
}

public JedisPool(String host, int port) {
public JedisPool(final String host, final int port) {
super(new Config(), new JedisFactory(host, port,
Protocol.DEFAULT_TIMEOUT, null));
}

public JedisPool(final String host) {
this(host, Protocol.DEFAULT_PORT);
}

public JedisPool(final Config poolConfig, final String host, int port,
int timeout, final String password) {
super(poolConfig, new JedisFactory(host, port, timeout, password));
Expand Down

0 comments on commit e9644a4

Please sign in to comment.