Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
redis.clients.jedis.TransactionBase Maven / Gradle / Ivy
package redis.clients.jedis;
import static redis.clients.jedis.Protocol.Command.DISCARD;
import static redis.clients.jedis.Protocol.Command.EXEC;
import static redis.clients.jedis.Protocol.Command.MULTI;
import static redis.clients.jedis.Protocol.Command.UNWATCH;
import static redis.clients.jedis.Protocol.Command.WATCH;
import java.io.Closeable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.json.JSONArray;
import redis.clients.jedis.args.*;
import redis.clients.jedis.bloom.*;
import redis.clients.jedis.commands.PipelineBinaryCommands;
import redis.clients.jedis.commands.PipelineCommands;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.commands.RedisModulePipelineCommands;
import redis.clients.jedis.exceptions.JedisConnectionException;
import redis.clients.jedis.exceptions.JedisDataException;
import redis.clients.jedis.graph.GraphCommandObjects;
import redis.clients.jedis.graph.ResultSet;
import redis.clients.jedis.json.JsonSetParams;
import redis.clients.jedis.json.Path;
import redis.clients.jedis.json.Path2;
import redis.clients.jedis.json.JsonObjectMapper;
import redis.clients.jedis.params.*;
import redis.clients.jedis.resps.*;
import redis.clients.jedis.search.*;
import redis.clients.jedis.search.aggr.AggregationBuilder;
import redis.clients.jedis.search.aggr.AggregationResult;
import redis.clients.jedis.search.schemafields.SchemaField;
import redis.clients.jedis.timeseries.*;
import redis.clients.jedis.util.KeyValue;
public abstract class TransactionBase extends Queable implements PipelineCommands,
PipelineBinaryCommands, RedisModulePipelineCommands, Closeable {
protected final Connection connection;
private final boolean closeConnection;
private final CommandObjects commandObjects;
private final GraphCommandObjects graphCommandObjects;
private boolean broken = false;
private boolean inWatch = false;
private boolean inMulti = false;
/**
* Creates a new transaction.
*
* A MULTI command will be added to be sent to server. WATCH/UNWATCH/MULTI commands must not be
* called with this object.
* @param connection connection
*/
public TransactionBase(Connection connection) {
this(connection, true);
}
/**
* Creates a new transaction.
*
* A user wanting to WATCH/UNWATCH keys followed by a call to MULTI ({@link #multi()}) it should
* be {@code doMulti=false}.
*
* @param connection connection
* @param doMulti {@code false} should be set to enable manual WATCH, UNWATCH and MULTI
*/
public TransactionBase(Connection connection, boolean doMulti) {
this(connection, doMulti, false);
}
/**
* Creates a new transaction.
*
* A user wanting to WATCH/UNWATCH keys followed by a call to MULTI ({@link #multi()}) it should
* be {@code doMulti=false}.
*
* @param connection connection
* @param doMulti {@code false} should be set to enable manual WATCH, UNWATCH and MULTI
* @param closeConnection should the 'connection' be closed when 'close()' is called?
*/
public TransactionBase(Connection connection, boolean doMulti, boolean closeConnection) {
this.connection = connection;
this.closeConnection = closeConnection;
this.commandObjects = new CommandObjects();
this.graphCommandObjects = new GraphCommandObjects(this.connection);
if (doMulti) multi();
}
public final void multi() {
connection.sendCommand(MULTI);
processMultiResponse();
inMulti = true;
}
public String watch(final String... keys) {
connection.sendCommand(WATCH, keys);
String status = connection.getStatusCodeReply();
inWatch = true;
return status;
}
public String watch(final byte[]... keys) {
connection.sendCommand(WATCH, keys);
String status = connection.getStatusCodeReply();
inWatch = true;
return status;
}
public String unwatch() {
connection.sendCommand(UNWATCH);
String status = connection.getStatusCodeReply();
inWatch = false;
return status;
}
protected abstract void processMultiResponse();
protected abstract void processAppendStatus();
protected final Response appendCommand(CommandObject commandObject) {
connection.sendCommand(commandObject.getArguments());
processAppendStatus();
return enqueResponse(commandObject.getBuilder());
}
@Override
public final void close() {
try {
clear();
} finally {
if (closeConnection) {
connection.close();
}
}
}
public final void clear() {
if (broken) {
return;
}
if (inMulti) {
discard();
} else if (inWatch) {
unwatch();
}
}
protected abstract void processPipelinedResponses();
public List exec() {
if (!inMulti) {
throw new IllegalStateException("EXEC without MULTI");
}
try {
processPipelinedResponses();
connection.sendCommand(EXEC);
List unformatted = connection.getObjectMultiBulkReply();
if (unformatted == null) {
clean();
return null;
}
List formatted = new ArrayList<>(unformatted.size());
for (Object o : unformatted) {
try {
formatted.add(generateResponse(o).get());
} catch (JedisDataException e) {
formatted.add(e);
}
}
return formatted;
} catch (JedisConnectionException jce) {
broken = true;
throw jce;
} finally {
inMulti = false;
inWatch = false;
clean();
}
}
public String discard() {
if (!inMulti) {
throw new IllegalStateException("DISCARD without MULTI");
}
try {
processPipelinedResponses();
connection.sendCommand(DISCARD);
return connection.getStatusCodeReply();
} catch (JedisConnectionException jce) {
broken = true;
throw jce;
} finally {
inMulti = false;
inWatch = false;
clean();
}
}
@Override
public Response exists(String key) {
return appendCommand(commandObjects.exists(key));
}
@Override
public Response exists(String... keys) {
return appendCommand(commandObjects.exists(keys));
}
@Override
public Response persist(String key) {
return appendCommand(commandObjects.persist(key));
}
@Override
public Response type(String key) {
return appendCommand(commandObjects.type(key));
}
@Override
public Response dump(String key) {
return appendCommand(commandObjects.dump(key));
}
@Override
public Response restore(String key, long ttl, byte[] serializedValue) {
return appendCommand(commandObjects.restore(key, ttl, serializedValue));
}
@Override
public Response restore(String key, long ttl, byte[] serializedValue, RestoreParams params) {
return appendCommand(commandObjects.restore(key, ttl, serializedValue, params));
}
@Override
public Response expire(String key, long seconds) {
return appendCommand(commandObjects.expire(key, seconds));
}
@Override
public Response expire(String key, long seconds, ExpiryOption expiryOption) {
return appendCommand(commandObjects.expire(key, seconds, expiryOption));
}
@Override
public Response pexpire(String key, long milliseconds) {
return appendCommand(commandObjects.pexpire(key, milliseconds));
}
@Override
public Response pexpire(String key, long milliseconds, ExpiryOption expiryOption) {
return appendCommand(commandObjects.pexpire(key, milliseconds, expiryOption));
}
@Override
public Response expireTime(String key) {
return appendCommand(commandObjects.expireTime(key));
}
@Override
public Response pexpireTime(String key) {
return appendCommand(commandObjects.pexpireTime(key));
}
@Override
public Response expireAt(String key, long unixTime) {
return appendCommand(commandObjects.expireAt(key, unixTime));
}
@Override
public Response expireAt(String key, long unixTime, ExpiryOption expiryOption) {
return appendCommand(commandObjects.expireAt(key, unixTime, expiryOption));
}
@Override
public Response pexpireAt(String key, long millisecondsTimestamp) {
return appendCommand(commandObjects.pexpireAt(key, millisecondsTimestamp));
}
@Override
public Response pexpireAt(String key, long millisecondsTimestamp, ExpiryOption expiryOption) {
return appendCommand(commandObjects.pexpireAt(key, millisecondsTimestamp, expiryOption));
}
@Override
public Response ttl(String key) {
return appendCommand(commandObjects.ttl(key));
}
@Override
public Response pttl(String key) {
return appendCommand(commandObjects.pttl(key));
}
@Override
public Response touch(String key) {
return appendCommand(commandObjects.touch(key));
}
@Override
public Response touch(String... keys) {
return appendCommand(commandObjects.touch(keys));
}
@Override
public Response> sort(String key) {
return appendCommand(commandObjects.sort(key));
}
@Override
public Response sort(String key, String dstKey) {
return appendCommand(commandObjects.sort(key, dstKey));
}
@Override
public Response> sort(String key, SortingParams sortingParams) {
return appendCommand(commandObjects.sort(key, sortingParams));
}
@Override
public Response sort(String key, SortingParams sortingParams, String dstKey) {
return appendCommand(commandObjects.sort(key, sortingParams, dstKey));
}
@Override
public Response> sortReadonly(String key, SortingParams sortingParams) {
return appendCommand(commandObjects.sortReadonly(key, sortingParams));
}
@Override
public Response del(String key) {
return appendCommand(commandObjects.del(key));
}
@Override
public Response del(String... keys) {
return appendCommand(commandObjects.del(keys));
}
@Override
public Response unlink(String key) {
return appendCommand(commandObjects.unlink(key));
}
@Override
public Response unlink(String... keys) {
return appendCommand(commandObjects.unlink(keys));
}
@Override
public Response copy(String srcKey, String dstKey, boolean replace) {
return appendCommand(commandObjects.copy(srcKey, dstKey, replace));
}
@Override
public Response rename(String oldkey, String newkey) {
return appendCommand(commandObjects.rename(oldkey, newkey));
}
@Override
public Response renamenx(String oldkey, String newkey) {
return appendCommand(commandObjects.renamenx(oldkey, newkey));
}
@Override
public Response memoryUsage(String key) {
return appendCommand(commandObjects.memoryUsage(key));
}
@Override
public Response memoryUsage(String key, int samples) {
return appendCommand(commandObjects.memoryUsage(key, samples));
}
@Override
public Response objectRefcount(String key) {
return appendCommand(commandObjects.objectRefcount(key));
}
@Override
public Response objectEncoding(String key) {
return appendCommand(commandObjects.objectEncoding(key));
}
@Override
public Response objectIdletime(String key) {
return appendCommand(commandObjects.objectIdletime(key));
}
@Override
public Response objectFreq(String key) {
return appendCommand(commandObjects.objectFreq(key));
}
@Override
public Response migrate(String host, int port, String key, int timeout) {
return appendCommand(commandObjects.migrate(host, port, key, timeout));
}
@Override
public Response migrate(String host, int port, int timeout, MigrateParams params, String... keys) {
return appendCommand(commandObjects.migrate(host, port, timeout, params, keys));
}
@Override
public Response> keys(String pattern) {
return appendCommand(commandObjects.keys(pattern));
}
@Override
public Response> scan(String cursor) {
return appendCommand(commandObjects.scan(cursor));
}
@Override
public Response> scan(String cursor, ScanParams params) {
return appendCommand(commandObjects.scan(cursor, params));
}
@Override
public Response> scan(String cursor, ScanParams params, String type) {
return appendCommand(commandObjects.scan(cursor, params, type));
}
@Override
public Response randomKey() {
return appendCommand(commandObjects.randomKey());
}
@Override
public Response get(String key) {
return appendCommand(commandObjects.get(key));
}
@Override
public Response setGet(String key, String value, SetParams params) {
return appendCommand(commandObjects.setGet(key, value, params));
}
@Override
public Response getDel(String key) {
return appendCommand(commandObjects.getDel(key));
}
@Override
public Response getEx(String key, GetExParams params) {
return appendCommand(commandObjects.getEx(key, params));
}
@Override
public Response setbit(String key, long offset, boolean value) {
return appendCommand(commandObjects.setbit(key, offset, value));
}
@Override
public Response getbit(String key, long offset) {
return appendCommand(commandObjects.getbit(key, offset));
}
@Override
public Response setrange(String key, long offset, String value) {
return appendCommand(commandObjects.setrange(key, offset, value));
}
@Override
public Response getrange(String key, long startOffset, long endOffset) {
return appendCommand(commandObjects.getrange(key, startOffset, endOffset));
}
@Override
public Response getSet(String key, String value) {
return appendCommand(commandObjects.getSet(key, value));
}
@Override
public Response setnx(String key, String value) {
return appendCommand(commandObjects.setnx(key, value));
}
@Override
public Response setex(String key, long seconds, String value) {
return appendCommand(commandObjects.setex(key, seconds, value));
}
@Override
public Response psetex(String key, long milliseconds, String value) {
return appendCommand(commandObjects.psetex(key, milliseconds, value));
}
@Override
public Response> mget(String... keys) {
return appendCommand(commandObjects.mget(keys));
}
@Override
public Response mset(String... keysvalues) {
return appendCommand(commandObjects.mset(keysvalues));
}
@Override
public Response msetnx(String... keysvalues) {
return appendCommand(commandObjects.msetnx(keysvalues));
}
@Override
public Response incr(String key) {
return appendCommand(commandObjects.incr(key));
}
@Override
public Response incrBy(String key, long increment) {
return appendCommand(commandObjects.incrBy(key, increment));
}
@Override
public Response incrByFloat(String key, double increment) {
return appendCommand(commandObjects.incrByFloat(key, increment));
}
@Override
public Response decr(String key) {
return appendCommand(commandObjects.decr(key));
}
@Override
public Response decrBy(String key, long decrement) {
return appendCommand(commandObjects.decrBy(key, decrement));
}
@Override
public Response append(String key, String value) {
return appendCommand(commandObjects.append(key, value));
}
@Override
public Response substr(String key, int start, int end) {
return appendCommand(commandObjects.substr(key, start, end));
}
@Override
public Response strlen(String key) {
return appendCommand(commandObjects.strlen(key));
}
@Override
public Response bitcount(String key) {
return appendCommand(commandObjects.bitcount(key));
}
@Override
public Response bitcount(String key, long start, long end) {
return appendCommand(commandObjects.bitcount(key, start, end));
}
@Override
public Response bitcount(String key, long start, long end, BitCountOption option) {
return appendCommand(commandObjects.bitcount(key, start, end, option));
}
@Override
public Response bitpos(String key, boolean value) {
return appendCommand(commandObjects.bitpos(key, value));
}
@Override
public Response bitpos(String key, boolean value, BitPosParams params) {
return appendCommand(commandObjects.bitpos(key, value, params));
}
@Override
public Response> bitfield(String key, String... arguments) {
return appendCommand(commandObjects.bitfield(key, arguments));
}
@Override
public Response> bitfieldReadonly(String key, String... arguments) {
return appendCommand(commandObjects.bitfieldReadonly(key, arguments));
}
@Override
public Response bitop(BitOP op, String destKey, String... srcKeys) {
return appendCommand(commandObjects.bitop(op, destKey, srcKeys));
}
@Override
public Response strAlgoLCSKeys(String keyA, String keyB, StrAlgoLCSParams params) {
return appendCommand(commandObjects.strAlgoLCSKeys(keyA, keyB, params));
}
@Override
public Response lcs(String keyA, String keyB, LCSParams params) {
return appendCommand(commandObjects.lcs(keyA, keyB, params));
}
@Override
public Response set(String key, String value) {
return appendCommand(commandObjects.set(key, value));
}
@Override
public Response set(String key, String value, SetParams params) {
return appendCommand(commandObjects.set(key, value, params));
}
@Override
public Response rpush(String key, String... string) {
return appendCommand(commandObjects.rpush(key, string));
}
@Override
public Response lpush(String key, String... string) {
return appendCommand(commandObjects.lpush(key, string));
}
@Override
public Response llen(String key) {
return appendCommand(commandObjects.llen(key));
}
@Override
public Response> lrange(String key, long start, long stop) {
return appendCommand(commandObjects.lrange(key, start, stop));
}
@Override
public Response ltrim(String key, long start, long stop) {
return appendCommand(commandObjects.ltrim(key, start, stop));
}
@Override
public Response lindex(String key, long index) {
return appendCommand(commandObjects.lindex(key, index));
}
@Override
public Response lset(String key, long index, String value) {
return appendCommand(commandObjects.lset(key, index, value));
}
@Override
public Response lrem(String key, long count, String value) {
return appendCommand(commandObjects.lrem(key, count, value));
}
@Override
public Response lpop(String key) {
return appendCommand(commandObjects.lpop(key));
}
@Override
public Response> lpop(String key, int count) {
return appendCommand(commandObjects.lpop(key, count));
}
@Override
public Response lpos(String key, String element) {
return appendCommand(commandObjects.lpos(key, element));
}
@Override
public Response lpos(String key, String element, LPosParams params) {
return appendCommand(commandObjects.lpos(key, element, params));
}
@Override
public Response> lpos(String key, String element, LPosParams params, long count) {
return appendCommand(commandObjects.lpos(key, element, params, count));
}
@Override
public Response rpop(String key) {
return appendCommand(commandObjects.rpop(key));
}
@Override
public Response> rpop(String key, int count) {
return appendCommand(commandObjects.rpop(key, count));
}
@Override
public Response linsert(String key, ListPosition where, String pivot, String value) {
return appendCommand(commandObjects.linsert(key, where, pivot, value));
}
@Override
public Response lpushx(String key, String... strings) {
return appendCommand(commandObjects.lpushx(key, strings));
}
@Override
public Response rpushx(String key, String... strings) {
return appendCommand(commandObjects.rpushx(key, strings));
}
@Override
public Response> blpop(int timeout, String key) {
return appendCommand(commandObjects.blpop(timeout, key));
}
@Override
public Response blpop(double timeout, String key) {
return appendCommand(commandObjects.blpop(timeout, key));
}
@Override
public Response> brpop(int timeout, String key) {
return appendCommand(commandObjects.brpop(timeout, key));
}
@Override
public Response brpop(double timeout, String key) {
return appendCommand(commandObjects.brpop(timeout, key));
}
@Override
public Response> blpop(int timeout, String... keys) {
return appendCommand(commandObjects.blpop(timeout, keys));
}
@Override
public Response blpop(double timeout, String... keys) {
return appendCommand(commandObjects.blpop(timeout, keys));
}
@Override
public Response> brpop(int timeout, String... keys) {
return appendCommand(commandObjects.brpop(timeout, keys));
}
@Override
public Response brpop(double timeout, String... keys) {
return appendCommand(commandObjects.brpop(timeout, keys));
}
@Override
public Response rpoplpush(String srcKey, String dstKey) {
return appendCommand(commandObjects.rpoplpush(srcKey, dstKey));
}
@Override
public Response brpoplpush(String source, String destination, int timeout) {
return appendCommand(commandObjects.brpoplpush(source, destination, timeout));
}
@Override
public Response lmove(String srcKey, String dstKey, ListDirection from, ListDirection to) {
return appendCommand(commandObjects.lmove(srcKey, dstKey, from, to));
}
@Override
public Response blmove(String srcKey, String dstKey, ListDirection from, ListDirection to, double timeout) {
return appendCommand(commandObjects.blmove(srcKey, dstKey, from, to, timeout));
}
@Override
public Response>> lmpop(ListDirection direction, String... keys) {
return appendCommand(commandObjects.lmpop(direction, keys));
}
@Override
public Response>> lmpop(ListDirection direction, int count, String... keys) {
return appendCommand(commandObjects.lmpop(direction, count, keys));
}
@Override
public Response>> blmpop(long timeout, ListDirection direction, String... keys) {
return appendCommand(commandObjects.blmpop(timeout, direction, keys));
}
@Override
public Response>> blmpop(long timeout, ListDirection direction, int count, String... keys) {
return appendCommand(commandObjects.blmpop(timeout, direction, count, keys));
}
@Override
public Response hset(String key, String field, String value) {
return appendCommand(commandObjects.hset(key, field, value));
}
@Override
public Response hset(String key, Map hash) {
return appendCommand(commandObjects.hset(key, hash));
}
@Override
public Response hget(String key, String field) {
return appendCommand(commandObjects.hget(key, field));
}
@Override
public Response hsetnx(String key, String field, String value) {
return appendCommand(commandObjects.hsetnx(key, field, value));
}
@Override
public Response hmset(String key, Map hash) {
return appendCommand(commandObjects.hmset(key, hash));
}
@Override
public Response> hmget(String key, String... fields) {
return appendCommand(commandObjects.hmget(key, fields));
}
@Override
public Response hincrBy(String key, String field, long value) {
return appendCommand(commandObjects.hincrBy(key, field, value));
}
@Override
public Response hincrByFloat(String key, String field, double value) {
return appendCommand(commandObjects.hincrByFloat(key, field, value));
}
@Override
public Response hexists(String key, String field) {
return appendCommand(commandObjects.hexists(key, field));
}
@Override
public Response hdel(String key, String... field) {
return appendCommand(commandObjects.hdel(key, field));
}
@Override
public Response hlen(String key) {
return appendCommand(commandObjects.hlen(key));
}
@Override
public Response> hkeys(String key) {
return appendCommand(commandObjects.hkeys(key));
}
@Override
public Response> hvals(String key) {
return appendCommand(commandObjects.hvals(key));
}
@Override
public Response> hgetAll(String key) {
return appendCommand(commandObjects.hgetAll(key));
}
@Override
public Response hrandfield(String key) {
return appendCommand(commandObjects.hrandfield(key));
}
@Override
public Response> hrandfield(String key, long count) {
return appendCommand(commandObjects.hrandfield(key, count));
}
@Override
public Response> hrandfieldWithValues(String key, long count) {
return appendCommand(commandObjects.hrandfieldWithValues(key, count));
}
@Override
public Response>> hscan(String key, String cursor, ScanParams params) {
return appendCommand(commandObjects.hscan(key, cursor, params));
}
@Override
public Response hstrlen(String key, String field) {
return appendCommand(commandObjects.hstrlen(key, field));
}
@Override
public Response sadd(String key, String... members) {
return appendCommand(commandObjects.sadd(key, members));
}
@Override
public Response> smembers(String key) {
return appendCommand(commandObjects.smembers(key));
}
@Override
public Response srem(String key, String... members) {
return appendCommand(commandObjects.srem(key, members));
}
@Override
public Response spop(String key) {
return appendCommand(commandObjects.spop(key));
}
@Override
public Response> spop(String key, long count) {
return appendCommand(commandObjects.spop(key, count));
}
@Override
public Response scard(String key) {
return appendCommand(commandObjects.scard(key));
}
@Override
public Response sismember(String key, String member) {
return appendCommand(commandObjects.sismember(key, member));
}
@Override
public Response> smismember(String key, String... members) {
return appendCommand(commandObjects.smismember(key, members));
}
@Override
public Response srandmember(String key) {
return appendCommand(commandObjects.srandmember(key));
}
@Override
public Response> srandmember(String key, int count) {
return appendCommand(commandObjects.srandmember(key, count));
}
@Override
public Response> sscan(String key, String cursor, ScanParams params) {
return appendCommand(commandObjects.sscan(key, cursor, params));
}
@Override
public Response> sdiff(String... keys) {
return appendCommand(commandObjects.sdiff(keys));
}
@Override
public Response sdiffstore(String dstKey, String... keys) {
return appendCommand(commandObjects.sdiffstore(dstKey, keys));
}
@Override
public Response> sinter(String... keys) {
return appendCommand(commandObjects.sinter(keys));
}
@Override
public Response sinterstore(String dstKey, String... keys) {
return appendCommand(commandObjects.sinterstore(dstKey, keys));
}
@Override
public Response sintercard(String... keys) {
return appendCommand(commandObjects.sintercard(keys));
}
@Override
public Response sintercard(int limit, String... keys) {
return appendCommand(commandObjects.sintercard(limit, keys));
}
@Override
public Response> sunion(String... keys) {
return appendCommand(commandObjects.sunion(keys));
}
@Override
public Response sunionstore(String dstKey, String... keys) {
return appendCommand(commandObjects.sunionstore(dstKey, keys));
}
@Override
public Response smove(String srcKey, String dstKey, String member) {
return appendCommand(commandObjects.smove(srcKey, dstKey, member));
}
@Override
public Response zadd(String key, double score, String member) {
return appendCommand(commandObjects.zadd(key, score, member));
}
@Override
public Response zadd(String key, double score, String member, ZAddParams params) {
return appendCommand(commandObjects.zadd(key, score, member, params));
}
@Override
public Response zadd(String key, Map scoreMembers) {
return appendCommand(commandObjects.zadd(key, scoreMembers));
}
@Override
public Response zadd(String key, Map scoreMembers, ZAddParams params) {
return appendCommand(commandObjects.zadd(key, scoreMembers, params));
}
@Override
public Response zaddIncr(String key, double score, String member, ZAddParams params) {
return appendCommand(commandObjects.zaddIncr(key, score, member, params));
}
@Override
public Response zrem(String key, String... members) {
return appendCommand(commandObjects.zrem(key, members));
}
@Override
public Response zincrby(String key, double increment, String member) {
return appendCommand(commandObjects.zincrby(key, increment, member));
}
@Override
public Response zincrby(String key, double increment, String member, ZIncrByParams params) {
return appendCommand(commandObjects.zincrby(key, increment, member, params));
}
@Override
public Response zrank(String key, String member) {
return appendCommand(commandObjects.zrank(key, member));
}
@Override
public Response zrevrank(String key, String member) {
return appendCommand(commandObjects.zrevrank(key, member));
}
@Override
public Response> zrankWithScore(String key, String member) {
return appendCommand(commandObjects.zrankWithScore(key, member));
}
@Override
public Response> zrevrankWithScore(String key, String member) {
return appendCommand(commandObjects.zrevrankWithScore(key, member));
}
@Override
public Response> zrange(String key, long start, long stop) {
return appendCommand(commandObjects.zrange(key, start, stop));
}
@Override
public Response> zrevrange(String key, long start, long stop) {
return appendCommand(commandObjects.zrevrange(key, start, stop));
}
@Override
public Response> zrangeWithScores(String key, long start, long stop) {
return appendCommand(commandObjects.zrangeWithScores(key, start, stop));
}
@Override
public Response> zrevrangeWithScores(String key, long start, long stop) {
return appendCommand(commandObjects.zrevrangeWithScores(key, start, stop));
}
@Override
public Response> zrange(String key, ZRangeParams zRangeParams) {
return appendCommand(commandObjects.zrange(key, zRangeParams));
}
@Override
public Response> zrangeWithScores(String key, ZRangeParams zRangeParams) {
return appendCommand(commandObjects.zrangeWithScores(key, zRangeParams));
}
@Override
public Response zrangestore(String dest, String src, ZRangeParams zRangeParams) {
return appendCommand(commandObjects.zrangestore(dest, src, zRangeParams));
}
@Override
public Response zrandmember(String key) {
return appendCommand(commandObjects.zrandmember(key));
}
@Override
public Response> zrandmember(String key, long count) {
return appendCommand(commandObjects.zrandmember(key, count));
}
@Override
public Response> zrandmemberWithScores(String key, long count) {
return appendCommand(commandObjects.zrandmemberWithScores(key, count));
}
@Override
public Response zcard(String key) {
return appendCommand(commandObjects.zcard(key));
}
@Override
public Response zscore(String key, String member) {
return appendCommand(commandObjects.zscore(key, member));
}
@Override
public Response> zmscore(String key, String... members) {
return appendCommand(commandObjects.zmscore(key, members));
}
@Override
public Response zpopmax(String key) {
return appendCommand(commandObjects.zpopmax(key));
}
@Override
public Response> zpopmax(String key, int count) {
return appendCommand(commandObjects.zpopmax(key, count));
}
@Override
public Response zpopmin(String key) {
return appendCommand(commandObjects.zpopmin(key));
}
@Override
public Response> zpopmin(String key, int count) {
return appendCommand(commandObjects.zpopmin(key, count));
}
@Override
public Response zcount(String key, double min, double max) {
return appendCommand(commandObjects.zcount(key, min, max));
}
@Override
public Response zcount(String key, String min, String max) {
return appendCommand(commandObjects.zcount(key, min, max));
}
@Override
public Response> zrangeByScore(String key, double min, double max) {
return appendCommand(commandObjects.zrangeByScore(key, min, max));
}
@Override
public Response> zrangeByScore(String key, String min, String max) {
return appendCommand(commandObjects.zrangeByScore(key, min, max));
}
@Override
public Response> zrevrangeByScore(String key, double max, double min) {
return appendCommand(commandObjects.zrevrangeByScore(key, max, min));
}
@Override
public Response> zrangeByScore(String key, double min, double max, int offset, int count) {
return appendCommand(commandObjects.zrangeByScore(key, min, max, offset, count));
}
@Override
public Response> zrevrangeByScore(String key, String max, String min) {
return appendCommand(commandObjects.zrevrangeByScore(key, max, min));
}
@Override
public Response> zrangeByScore(String key, String min, String max, int offset, int count) {
return appendCommand(commandObjects.zrangeByScore(key, min, max, offset, count));
}
@Override
public Response> zrevrangeByScore(String key, double max, double min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScore(key, max, min, offset, count));
}
@Override
public Response> zrangeByScoreWithScores(String key, double min, double max) {
return appendCommand(commandObjects.zrangeByScoreWithScores(key, min, max));
}
@Override
public Response> zrevrangeByScoreWithScores(String key, double max, double min) {
return appendCommand(commandObjects.zrevrangeByScoreWithScores(key, max, min));
}
@Override
public Response> zrangeByScoreWithScores(String key, double min, double max, int offset, int count) {
return appendCommand(commandObjects.zrangeByScoreWithScores(key, min, max, offset, count));
}
@Override
public Response> zrevrangeByScore(String key, String max, String min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScore(key, max, min, offset, count));
}
@Override
public Response> zrangeByScoreWithScores(String key, String min, String max) {
return appendCommand(commandObjects.zrangeByScoreWithScores(key, min, max));
}
@Override
public Response> zrevrangeByScoreWithScores(String key, String max, String min) {
return appendCommand(commandObjects.zrevrangeByScoreWithScores(key, max, min));
}
@Override
public Response> zrangeByScoreWithScores(String key, String min, String max, int offset, int count) {
return appendCommand(commandObjects.zrangeByScoreWithScores(key, min, max, offset, count));
}
@Override
public Response> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScoreWithScores(key, max, min, offset, count));
}
@Override
public Response> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScoreWithScores(key, max, min, offset, count));
}
@Override
public Response zremrangeByRank(String key, long start, long stop) {
return appendCommand(commandObjects.zremrangeByRank(key, start, stop));
}
@Override
public Response zremrangeByScore(String key, double min, double max) {
return appendCommand(commandObjects.zremrangeByScore(key, min, max));
}
@Override
public Response zremrangeByScore(String key, String min, String max) {
return appendCommand(commandObjects.zremrangeByScore(key, min, max));
}
@Override
public Response zlexcount(String key, String min, String max) {
return appendCommand(commandObjects.zlexcount(key, min, max));
}
@Override
public Response> zrangeByLex(String key, String min, String max) {
return appendCommand(commandObjects.zrangeByLex(key, min, max));
}
@Override
public Response> zrangeByLex(String key, String min, String max, int offset, int count) {
return appendCommand(commandObjects.zrangeByLex(key, min, max, offset, count));
}
@Override
public Response> zrevrangeByLex(String key, String max, String min) {
return appendCommand(commandObjects.zrevrangeByLex(key, max, min));
}
@Override
public Response> zrevrangeByLex(String key, String max, String min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByLex(key, max, min, offset, count));
}
@Override
public Response zremrangeByLex(String key, String min, String max) {
return appendCommand(commandObjects.zremrangeByLex(key, min, max));
}
@Override
public Response> zscan(String key, String cursor, ScanParams params) {
return appendCommand(commandObjects.zscan(key, cursor, params));
}
@Override
public Response bzpopmax(double timeout, String... keys) {
return appendCommand(commandObjects.bzpopmax(timeout, keys));
}
@Override
public Response bzpopmin(double timeout, String... keys) {
return appendCommand(commandObjects.bzpopmin(timeout, keys));
}
@Override
public Response>> zmpop(SortedSetOption option, String... keys) {
return appendCommand(commandObjects.zmpop(option, keys));
}
@Override
public Response>> zmpop(SortedSetOption option, int count, String... keys) {
return appendCommand(commandObjects.zmpop(option, count, keys));
}
@Override
public Response>> bzmpop(long timeout, SortedSetOption option, String... keys) {
return appendCommand(commandObjects.bzmpop(timeout, option, keys));
}
@Override
public Response>> bzmpop(long timeout, SortedSetOption option, int count, String... keys) {
return appendCommand(commandObjects.bzmpop(timeout, option, count, keys));
}
@Override
public Response> zdiff(String... keys) {
return appendCommand(commandObjects.zdiff(keys));
}
@Override
public Response> zdiffWithScores(String... keys) {
return appendCommand(commandObjects.zdiffWithScores(keys));
}
@Override
public Response zdiffStore(String dstKey, String... keys) {
return appendCommand(commandObjects.zdiffStore(dstKey, keys));
}
@Override
public Response zinterstore(String dstKey, String... sets) {
return appendCommand(commandObjects.zinterstore(dstKey, sets));
}
@Override
public Response zinterstore(String dstKey, ZParams params, String... sets) {
return appendCommand(commandObjects.zinterstore(dstKey, params, sets));
}
@Override
public Response> zinter(ZParams params, String... keys) {
return appendCommand(commandObjects.zinter(params, keys));
}
@Override
public Response> zinterWithScores(ZParams params, String... keys) {
return appendCommand(commandObjects.zinterWithScores(params, keys));
}
@Override
public Response zintercard(String... keys) {
return appendCommand(commandObjects.zintercard(keys));
}
@Override
public Response zintercard(long limit, String... keys) {
return appendCommand(commandObjects.zintercard(limit, keys));
}
@Override
public Response> zunion(ZParams params, String... keys) {
return appendCommand(commandObjects.zunion(params, keys));
}
@Override
public Response> zunionWithScores(ZParams params, String... keys) {
return appendCommand(commandObjects.zunionWithScores(params, keys));
}
@Override
public Response zunionstore(String dstKey, String... sets) {
return appendCommand(commandObjects.zunionstore(dstKey, sets));
}
@Override
public Response zunionstore(String dstKey, ZParams params, String... sets) {
return appendCommand(commandObjects.zunionstore(dstKey, params, sets));
}
@Override
public Response geoadd(String key, double longitude, double latitude, String member) {
return appendCommand(commandObjects.geoadd(key, longitude, latitude, member));
}
@Override
public Response geoadd(String key, Map memberCoordinateMap) {
return appendCommand(commandObjects.geoadd(key, memberCoordinateMap));
}
@Override
public Response geoadd(String key, GeoAddParams params, Map memberCoordinateMap) {
return appendCommand(commandObjects.geoadd(key, params, memberCoordinateMap));
}
@Override
public Response geodist(String key, String member1, String member2) {
return appendCommand(commandObjects.geodist(key, member1, member2));
}
@Override
public Response geodist(String key, String member1, String member2, GeoUnit unit) {
return appendCommand(commandObjects.geodist(key, member1, member2, unit));
}
@Override
public Response> geohash(String key, String... members) {
return appendCommand(commandObjects.geohash(key, members));
}
@Override
public Response> geopos(String key, String... members) {
return appendCommand(commandObjects.geopos(key, members));
}
@Override
public Response> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit) {
return appendCommand(commandObjects.georadius(key, longitude, latitude, radius, unit));
}
@Override
public Response