Adds incrByFloat as cluster command
This commit is contained in:
@@ -293,6 +293,17 @@ public class JedisCluster implements JedisCommands, BasicCommands, Closeable {
|
||||
}.run(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Double incrByFloat(final String key, final double value) {
|
||||
return new JedisClusterCommand<Double>(connectionHandler, timeout,
|
||||
maxRedirections) {
|
||||
@Override
|
||||
public Double execute(Jedis connection) {
|
||||
return connection.incrByFloat(key, value);
|
||||
}
|
||||
}.run(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long incr(final String key) {
|
||||
return new JedisClusterCommand<Long>(connectionHandler, timeout,
|
||||
|
||||
@@ -48,6 +48,8 @@ public interface JedisCommands {
|
||||
|
||||
Long incrBy(String key, long integer);
|
||||
|
||||
Double incrByFloat(String key, double value);
|
||||
|
||||
Long incr(String key);
|
||||
|
||||
Long append(String key, String value);
|
||||
|
||||
Reference in New Issue
Block a user