Skip to content

Commit

Permalink
Merge pull request redis#168 from kevinsawicki/jedis
Browse files Browse the repository at this point in the history
---

This constructor type is available on the ```Jedis``` class and so I added it to ```JedisPool``` for consistency.

Conflicts:
	src/main/java/redis/clients/jedis/JedisPool.java
  • Loading branch information
ewhauser committed Sep 13, 2011
2 parents 7803f5b + e9644a4 commit 90dd6a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/redis/clients/jedis/JedisPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public JedisPool(String host, int port) {
this(new Config(), host, port, Protocol.DEFAULT_TIMEOUT, null, Protocol.DEFAULT_DATABASE);
}

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) {
this(poolConfig, host, port, timeout, password, Protocol.DEFAULT_DATABASE);
Expand Down

0 comments on commit 90dd6a1

Please sign in to comment.