Added incrByFloat and hincrByFloat commands (binary and standard) + support for pipelining and sharding

This commit is contained in:
Eric Treworgy
2013-01-07 12:33:19 -08:00
parent 2058231a61
commit 610f7d4546
14 changed files with 222 additions and 2 deletions

View File

@@ -118,6 +118,11 @@ public class ShardedJedis extends BinaryShardedJedis implements JedisCommands {
return j.incrBy(key, integer);
}
public Double incrByFloat(String key, double integer) {
Jedis j = getShard(key);
return j.incrByFloat(key, integer);
}
public Long incr(String key) {
Jedis j = getShard(key);
return j.incr(key);
@@ -163,6 +168,11 @@ public class ShardedJedis extends BinaryShardedJedis implements JedisCommands {
return j.hincrBy(key, field, value);
}
public Double hincrByFloat(String key, String field, double value) {
Jedis j = getShard(key);
return j.hincrByFloat(key, field, value);
}
public Boolean hexists(String key, String field) {
Jedis j = getShard(key);
return j.hexists(key, field);