diff --git a/README.md b/README.md
index bbefbe1..450c574 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@ Or use it as a maven dependency:
redis.clients
jedis
- 2.2.1
+ 2.4.2
jar
compile
diff --git a/pom.xml b/pom.xml
index a55806e..1be71dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
jar
redis.clients
jedis
- 2.4.2-SNAPSHOT
+ 2.5.0-SNAPSHOT
Jedis
Jedis is a blazingly small and sane Redis java client.
https://github.com/xetorthio/jedis
diff --git a/src/main/java/redis/clients/jedis/JedisCluster.java b/src/main/java/redis/clients/jedis/JedisCluster.java
index 72f72c0..9870429 100644
--- a/src/main/java/redis/clients/jedis/JedisCluster.java
+++ b/src/main/java/redis/clients/jedis/JedisCluster.java
@@ -55,8 +55,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().set(key, value);
+ public String execute(Jedis connection) {
+ return connection.set(key, value);
}
}.run(key);
}
@@ -66,8 +66,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().get(key);
+ public String execute(Jedis connection) {
+ return connection.get(key);
}
}.run(key);
}
@@ -77,8 +77,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Boolean execute() {
- return connectionHandler.getConnection().exists(key);
+ public Boolean execute(Jedis connection) {
+ return connection.exists(key);
}
}.run(key);
}
@@ -88,8 +88,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().persist(key);
+ public Long execute(Jedis connection) {
+ return connection.persist(key);
}
}.run(key);
}
@@ -99,8 +99,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().type(key);
+ public String execute(Jedis connection) {
+ return connection.type(key);
}
}.run(key);
}
@@ -110,8 +110,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().expire(key, seconds);
+ public Long execute(Jedis connection) {
+ return connection.expire(key, seconds);
}
}.run(key);
}
@@ -121,8 +121,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection()
+ public Long execute(Jedis connection) {
+ return connection
.expireAt(key, unixTime);
}
}.run(key);
@@ -133,8 +133,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().ttl(key);
+ public Long execute(Jedis connection) {
+ return connection.ttl(key);
}
}.run(key);
}
@@ -145,8 +145,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Boolean execute() {
- return connectionHandler.getConnection().setbit(key, offset,
+ public Boolean execute(Jedis connection) {
+ return connection.setbit(key, offset,
value);
}
}.run(key);
@@ -158,8 +158,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Boolean execute() {
- return connectionHandler.getConnection().setbit(key, offset,
+ public Boolean execute(Jedis connection) {
+ return connection.setbit(key, offset,
value);
}
}.run(key);
@@ -170,8 +170,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Boolean execute() {
- return connectionHandler.getConnection().getbit(key, offset);
+ public Boolean execute(Jedis connection) {
+ return connection.getbit(key, offset);
}
}.run(key);
}
@@ -181,8 +181,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().setrange(key, offset,
+ public Long execute(Jedis connection) {
+ return connection.setrange(key, offset,
value);
}
}.run(key);
@@ -194,8 +194,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().getrange(key,
+ public String execute(Jedis connection) {
+ return connection.getrange(key,
startOffset, endOffset);
}
}.run(key);
@@ -206,8 +206,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().getSet(key, value);
+ public String execute(Jedis connection) {
+ return connection.getSet(key, value);
}
}.run(key);
}
@@ -217,8 +217,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().setnx(key, value);
+ public Long execute(Jedis connection) {
+ return connection.setnx(key, value);
}
}.run(key);
}
@@ -228,8 +228,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().setex(key, seconds,
+ public String execute(Jedis connection) {
+ return connection.setex(key, seconds,
value);
}
}.run(key);
@@ -240,8 +240,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().decrBy(key, integer);
+ public Long execute(Jedis connection) {
+ return connection.decrBy(key, integer);
}
}.run(key);
}
@@ -251,8 +251,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().decr(key);
+ public Long execute(Jedis connection) {
+ return connection.decr(key);
}
}.run(key);
}
@@ -262,8 +262,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().incrBy(key, integer);
+ public Long execute(Jedis connection) {
+ return connection.incrBy(key, integer);
}
}.run(key);
}
@@ -273,8 +273,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().incr(key);
+ public Long execute(Jedis connection) {
+ return connection.incr(key);
}
}.run(key);
}
@@ -284,8 +284,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().append(key, value);
+ public Long execute(Jedis connection) {
+ return connection.append(key, value);
}
}.run(key);
}
@@ -295,8 +295,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection()
+ public String execute(Jedis connection) {
+ return connection
.substr(key, start, end);
}
}.run(key);
@@ -307,8 +307,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection()
+ public Long execute(Jedis connection) {
+ return connection
.hset(key, field, value);
}
}.run(key);
@@ -319,8 +319,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().hget(key, field);
+ public String execute(Jedis connection) {
+ return connection.hget(key, field);
}
}.run(key);
}
@@ -330,8 +330,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().hsetnx(key, field,
+ public Long execute(Jedis connection) {
+ return connection.hsetnx(key, field,
value);
}
}.run(key);
@@ -342,8 +342,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public String execute() {
- return connectionHandler.getConnection().hmset(key, hash);
+ public String execute(Jedis connection) {
+ return connection.hmset(key, hash);
}
}.run(key);
}
@@ -353,8 +353,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand>(connectionHandler,
timeout, maxRedirections) {
@Override
- public List execute() {
- return connectionHandler.getConnection().hmget(key, fields);
+ public List execute(Jedis connection) {
+ return connection.hmget(key, fields);
}
}.run(key);
}
@@ -364,8 +364,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().hincrBy(key, field,
+ public Long execute(Jedis connection) {
+ return connection.hincrBy(key, field,
value);
}
}.run(key);
@@ -376,8 +376,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Boolean execute() {
- return connectionHandler.getConnection().hexists(key, field);
+ public Boolean execute(Jedis connection) {
+ return connection.hexists(key, field);
}
}.run(key);
}
@@ -387,8 +387,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().hdel(key, field);
+ public Long execute(Jedis connection) {
+ return connection.hdel(key, field);
}
}.run(key);
}
@@ -398,8 +398,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand(connectionHandler, timeout,
maxRedirections) {
@Override
- public Long execute() {
- return connectionHandler.getConnection().hdel(key);
+ public Long execute(Jedis connection) {
+ return connection.hdel(key);
}
}.run(key);
}
@@ -409,8 +409,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand>(connectionHandler, timeout,
maxRedirections) {
@Override
- public Set execute() {
- return connectionHandler.getConnection().hkeys(key);
+ public Set execute(Jedis connection) {
+ return connection.hkeys(key);
}
}.run(key);
}
@@ -420,8 +420,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand>(connectionHandler,
timeout, maxRedirections) {
@Override
- public List execute() {
- return connectionHandler.getConnection().hvals(key);
+ public List execute(Jedis connection) {
+ return connection.hvals(key);
}
}.run(key);
}
@@ -431,8 +431,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
return new JedisClusterCommand