Add first test to thorw MovedDataException when receiving MOVED from a cluster node

This commit is contained in:
Marcos Nils
2013-12-07 17:55:17 -03:00
parent 46966fb89f
commit a8987ed865
7 changed files with 775 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ public class JedisPool extends Pool<Jedis> {
this(new GenericObjectPoolConfig(), host, port,
Protocol.DEFAULT_TIMEOUT, null, Protocol.DEFAULT_DATABASE, null);
}
public JedisPool(final String host) {
URI uri = URI.create(host);
if (uri.getScheme() != null && uri.getScheme().equals("redis")) {