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.PipelineBase Maven / Gradle / Ivy
package redis.clients.jedis;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
import java.util.List;
import java.util.Map;
import java.util.Set;
import static redis.clients.jedis.Protocol.toByteArray;
abstract class PipelineBase extends Queable implements
BinaryRedisPipeline,
RedisPipeline {
protected abstract Client getClient(String key);
protected abstract Client getClient(byte[] key);
public Response append(String key, String value) {
getClient(key).append(key, value);
return getResponse(BuilderFactory.LONG);
}
public Response append(byte[] key, byte[] value) {
getClient(key).append(key, value);
return getResponse(BuilderFactory.LONG);
}
public Response> blpop(String key) {
String[] temp = new String[1];
temp[0] = key;
getClient(key).blpop(temp);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> brpop(String key) {
String[] temp = new String[1];
temp[0] = key;
getClient(key).brpop(temp);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> blpop(byte[] key) {
byte[][] temp = new byte[1][];
temp[0] = key;
getClient(key).blpop(temp);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response> brpop(byte[] key) {
byte[][] temp = new byte[1][];
temp[0] = key;
getClient(key).brpop(temp);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response decr(String key) {
getClient(key).decr(key);
return getResponse(BuilderFactory.LONG);
}
public Response decr(byte[] key) {
getClient(key).decr(key);
return getResponse(BuilderFactory.LONG);
}
public Response decrBy(String key, long integer) {
getClient(key).decrBy(key, integer);
return getResponse(BuilderFactory.LONG);
}
public Response decrBy(byte[] key, long integer) {
getClient(key).decrBy(key, integer);
return getResponse(BuilderFactory.LONG);
}
public Response del(String key) {
getClient(key).del(key);
return getResponse(BuilderFactory.LONG);
}
public Response del(byte[] key) {
getClient(key).del(key);
return getResponse(BuilderFactory.LONG);
}
public Response echo(String string) {
getClient(string).echo(string);
return getResponse(BuilderFactory.STRING);
}
public Response echo(byte[] string) {
getClient(string).echo(string);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response exists(String key) {
getClient(key).exists(key);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response exists(byte[] key) {
getClient(key).exists(key);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response expire(String key, int seconds) {
getClient(key).expire(key, seconds);
return getResponse(BuilderFactory.LONG);
}
public Response expire(byte[] key, int seconds) {
getClient(key).expire(key, seconds);
return getResponse(BuilderFactory.LONG);
}
public Response expireAt(String key, long unixTime) {
getClient(key).expireAt(key, unixTime);
return getResponse(BuilderFactory.LONG);
}
public Response expireAt(byte[] key, long unixTime) {
getClient(key).expireAt(key, unixTime);
return getResponse(BuilderFactory.LONG);
}
public Response get(String key) {
getClient(key).get(key);
return getResponse(BuilderFactory.STRING);
}
public Response get(byte[] key) {
getClient(key).get(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response getbit(String key, long offset) {
getClient(key).getbit(key, offset);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response getbit(byte[] key, long offset) {
getClient(key).getbit(key, offset);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response getrange(String key, long startOffset,
long endOffset) {
getClient(key).getrange(key, startOffset, endOffset);
return getResponse(BuilderFactory.STRING);
}
public Response getSet(String key, String value) {
getClient(key).getSet(key, value);
return getResponse(BuilderFactory.STRING);
}
public Response getSet(byte[] key, byte[] value) {
getClient(key).getSet(key, value);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response getrange(byte[] key, long startOffset, long endOffset) {
getClient(key).getrange(key, startOffset, endOffset);
return getResponse(BuilderFactory.LONG);
}
public Response hdel(String key, String... field) {
getClient(key).hdel(key, field);
return getResponse(BuilderFactory.LONG);
}
public Response hdel(byte[] key, byte[]... field) {
getClient(key).hdel(key, field);
return getResponse(BuilderFactory.LONG);
}
public Response hexists(String key, String field) {
getClient(key).hexists(key, field);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response hexists(byte[] key, byte[] field) {
getClient(key).hexists(key, field);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response hget(String key, String field) {
getClient(key).hget(key, field);
return getResponse(BuilderFactory.STRING);
}
public Response hget(byte[] key, byte[] field) {
getClient(key).hget(key, field);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response> hgetAll(String key) {
getClient(key).hgetAll(key);
return getResponse(BuilderFactory.STRING_MAP);
}
public Response> hgetAll(byte[] key) {
getClient(key).hgetAll(key);
return getResponse(BuilderFactory.BYTE_ARRAY_MAP);
}
public Response hincrBy(String key, String field, long value) {
getClient(key).hincrBy(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response hincrBy(byte[] key, byte[] field, long value) {
getClient(key).hincrBy(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response> hkeys(String key) {
getClient(key).hkeys(key);
return getResponse(BuilderFactory.STRING_SET);
}
public Response> hkeys(byte[] key) {
getClient(key).hkeys(key);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response hlen(String key) {
getClient(key).hlen(key);
return getResponse(BuilderFactory.LONG);
}
public Response hlen(byte[] key) {
getClient(key).hlen(key);
return getResponse(BuilderFactory.LONG);
}
public Response> hmget(String key, String... fields) {
getClient(key).hmget(key, fields);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> hmget(byte[] key, byte[]... fields) {
getClient(key).hmget(key, fields);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response hmset(String key, Map hash) {
getClient(key).hmset(key, hash);
return getResponse(BuilderFactory.STRING);
}
public Response hmset(byte[] key, Map hash) {
getClient(key).hmset(key, hash);
return getResponse(BuilderFactory.STRING);
}
public Response hset(String key, String field, String value) {
getClient(key).hset(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response hset(byte[] key, byte[] field, byte[] value) {
getClient(key).hset(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response hsetnx(String key, String field, String value) {
getClient(key).hsetnx(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response hsetnx(byte[] key, byte[] field, byte[] value) {
getClient(key).hsetnx(key, field, value);
return getResponse(BuilderFactory.LONG);
}
public Response> hvals(String key) {
getClient(key).hvals(key);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> hvals(byte[] key) {
getClient(key).hvals(key);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response incr(String key) {
getClient(key).incr(key);
return getResponse(BuilderFactory.LONG);
}
public Response incr(byte[] key) {
getClient(key).incr(key);
return getResponse(BuilderFactory.LONG);
}
public Response incrBy(String key, long integer) {
getClient(key).incrBy(key, integer);
return getResponse(BuilderFactory.LONG);
}
public Response incrBy(byte[] key, long integer) {
getClient(key).incrBy(key, integer);
return getResponse(BuilderFactory.LONG);
}
public Response lindex(String key, long index) {
getClient(key).lindex(key, index);
return getResponse(BuilderFactory.STRING);
}
public Response lindex(byte[] key, long index) {
getClient(key).lindex(key, index);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response linsert(String key, LIST_POSITION where,
String pivot, String value) {
getClient(key).linsert(key, where, pivot, value);
return getResponse(BuilderFactory.LONG);
}
public Response linsert(byte[] key, LIST_POSITION where,
byte[] pivot, byte[] value) {
getClient(key).linsert(key, where, pivot, value);
return getResponse(BuilderFactory.LONG);
}
public Response llen(String key) {
getClient(key).llen(key);
return getResponse(BuilderFactory.LONG);
}
public Response llen(byte[] key) {
getClient(key).llen(key);
return getResponse(BuilderFactory.LONG);
}
public Response lpop(String key) {
getClient(key).lpop(key);
return getResponse(BuilderFactory.STRING);
}
public Response lpop(byte[] key) {
getClient(key).lpop(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response lpush(String key, String... string) {
getClient(key).lpush(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response lpush(byte[] key, byte[]... string) {
getClient(key).lpush(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response lpushx(String key, String... string) {
getClient(key).lpushx(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response lpushx(byte[] key, byte[]... bytes) {
getClient(key).lpushx(key, bytes);
return getResponse(BuilderFactory.LONG);
}
public Response> lrange(String key, long start, long end) {
getClient(key).lrange(key, start, end);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> lrange(byte[] key, long start, long end) {
getClient(key).lrange(key, start, end);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response lrem(String key, long count, String value) {
getClient(key).lrem(key, count, value);
return getResponse(BuilderFactory.LONG);
}
public Response lrem(byte[] key, long count, byte[] value) {
getClient(key).lrem(key, count, value);
return getResponse(BuilderFactory.LONG);
}
public Response lset(String key, long index, String value) {
getClient(key).lset(key, index, value);
return getResponse(BuilderFactory.STRING);
}
public Response lset(byte[] key, long index, byte[] value) {
getClient(key).lset(key, index, value);
return getResponse(BuilderFactory.STRING);
}
public Response ltrim(String key, long start, long end) {
getClient(key).ltrim(key, start, end);
return getResponse(BuilderFactory.STRING);
}
public Response ltrim(byte[] key, long start, long end) {
getClient(key).ltrim(key, start, end);
return getResponse(BuilderFactory.STRING);
}
public Response move(String key, int dbIndex) {
getClient(key).move(key, dbIndex);
return getResponse(BuilderFactory.LONG);
}
public Response move(byte[] key, int dbIndex) {
getClient(key).move(key, dbIndex);
return getResponse(BuilderFactory.LONG);
}
public Response persist(String key) {
getClient(key).persist(key);
return getResponse(BuilderFactory.LONG);
}
public Response persist(byte[] key) {
getClient(key).persist(key);
return getResponse(BuilderFactory.LONG);
}
public Response rpop(String key) {
getClient(key).rpop(key);
return getResponse(BuilderFactory.STRING);
}
public Response rpop(byte[] key) {
getClient(key).rpop(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response rpush(String key, String... string) {
getClient(key).rpush(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response rpush(byte[] key, byte[]... string) {
getClient(key).rpush(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response rpushx(String key, String... string) {
getClient(key).rpushx(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response rpushx(byte[] key, byte[]... string) {
getClient(key).rpushx(key, string);
return getResponse(BuilderFactory.LONG);
}
public Response sadd(String key, String... member) {
getClient(key).sadd(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response sadd(byte[] key, byte[]... member) {
getClient(key).sadd(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response scard(String key) {
getClient(key).scard(key);
return getResponse(BuilderFactory.LONG);
}
public Response scard(byte[] key) {
getClient(key).scard(key);
return getResponse(BuilderFactory.LONG);
}
public Response set(String key, String value) {
getClient(key).set(key, value);
return getResponse(BuilderFactory.STRING);
}
public Response set(byte[] key, byte[] value) {
getClient(key).set(key, value);
return getResponse(BuilderFactory.STRING);
}
public Response setbit(String key, long offset, boolean value) {
getClient(key).setbit(key, offset, value);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response setbit(byte[] key, long offset, byte[] value) {
getClient(key).setbit(key, offset, value);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response setex(String key, int seconds, String value) {
getClient(key).setex(key, seconds, value);
return getResponse(BuilderFactory.STRING);
}
public Response setex(byte[] key, int seconds, byte[] value) {
getClient(key).setex(key, seconds, value);
return getResponse(BuilderFactory.STRING);
}
public Response setnx(String key, String value) {
getClient(key).setnx(key, value);
return getResponse(BuilderFactory.LONG);
}
public Response setnx(byte[] key, byte[] value) {
getClient(key).setnx(key, value);
return getResponse(BuilderFactory.LONG);
}
public Response setrange(String key, long offset, String value) {
getClient(key).setrange(key, offset, value);
return getResponse(BuilderFactory.LONG);
}
public Response setrange(byte[] key, long offset, byte[] value) {
getClient(key).setrange(key, offset, value);
return getResponse(BuilderFactory.LONG);
}
public Response sismember(String key, String member) {
getClient(key).sismember(key, member);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response sismember(byte[] key, byte[] member) {
getClient(key).sismember(key, member);
return getResponse(BuilderFactory.BOOLEAN);
}
public Response> smembers(String key) {
getClient(key).smembers(key);
return getResponse(BuilderFactory.STRING_SET);
}
public Response> smembers(byte[] key) {
getClient(key).smembers(key);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> sort(String key) {
getClient(key).sort(key);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> sort(byte[] key) {
getClient(key).sort(key);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response> sort(String key,
SortingParams sortingParameters) {
getClient(key).sort(key, sortingParameters);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response> sort(byte[] key,
SortingParams sortingParameters) {
getClient(key).sort(key, sortingParameters);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response spop(String key) {
getClient(key).spop(key);
return getResponse(BuilderFactory.STRING);
}
public Response spop(byte[] key) {
getClient(key).spop(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response srandmember(String key) {
getClient(key).srandmember(key);
return getResponse(BuilderFactory.STRING);
}
public Response> srandmember(String key, int count) {
getClient(key).srandmember(key, count);
return getResponse(BuilderFactory.STRING_LIST);
}
public Response srandmember(byte[] key) {
getClient(key).srandmember(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response> srandmember(byte[] key, int count) {
getClient(key).srandmember(key, count);
return getResponse(BuilderFactory.BYTE_ARRAY_LIST);
}
public Response srem(String key, String... member) {
getClient(key).srem(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response srem(byte[] key, byte[]... member) {
getClient(key).srem(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response strlen(String key) {
getClient(key).strlen(key);
return getResponse(BuilderFactory.LONG);
}
public Response strlen(byte[] key) {
getClient(key).strlen(key);
return getResponse(BuilderFactory.LONG);
}
public Response substr(String key, int start, int end) {
getClient(key).substr(key, start, end);
return getResponse(BuilderFactory.STRING);
}
public Response substr(byte[] key, int start, int end) {
getClient(key).substr(key, start, end);
return getResponse(BuilderFactory.STRING);
}
public Response ttl(String key) {
getClient(key).ttl(key);
return getResponse(BuilderFactory.LONG);
}
public Response ttl(byte[] key) {
getClient(key).ttl(key);
return getResponse(BuilderFactory.LONG);
}
public Response type(String key) {
getClient(key).type(key);
return getResponse(BuilderFactory.STRING);
}
public Response type(byte[] key) {
getClient(key).type(key);
return getResponse(BuilderFactory.STRING);
}
public Response zadd(String key, double score, String member) {
getClient(key).zadd(key, score, member);
return getResponse(BuilderFactory.LONG);
}
public Response zadd(String key, Map scoreMembers) {
getClient(key).zadd(key, scoreMembers);
return getResponse(BuilderFactory.LONG);
}
public Response zadd(byte[] key, double score, byte[] member) {
getClient(key).zadd(key, score, member);
return getResponse(BuilderFactory.LONG);
}
public Response zcard(String key) {
getClient(key).zcard(key);
return getResponse(BuilderFactory.LONG);
}
public Response zcard(byte[] key) {
getClient(key).zcard(key);
return getResponse(BuilderFactory.LONG);
}
public Response zcount(String key, double min, double max) {
getClient(key).zcount(key, min, max);
return getResponse(BuilderFactory.LONG);
}
public Response zcount(String key, String min, String max) {
getClient(key).zcount(key, min, max);
return getResponse(BuilderFactory.LONG);
}
public Response zcount(byte[] key, double min, double max) {
getClient(key).zcount(key, toByteArray(min), toByteArray(max));
return getResponse(BuilderFactory.LONG);
}
public Response zincrby(String key, double score, String member) {
getClient(key).zincrby(key, score, member);
return getResponse(BuilderFactory.DOUBLE);
}
public Response zincrby(byte[] key, double score, byte[] member) {
getClient(key).zincrby(key, score, member);
return getResponse(BuilderFactory.DOUBLE);
}
public Response> zrange(String key, long start, long end) {
getClient(key).zrange(key, start, end);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrange(byte[] key, long start, long end) {
getClient(key).zrange(key, start, end);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrangeByScore(String key, double min,
double max) {
getClient(key).zrangeByScore(key, min, max);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrangeByScore(byte[] key, double min,
double max) {
return zrangeByScore(key, toByteArray(min), toByteArray(max));
}
public Response> zrangeByScore(String key, String min,
String max) {
getClient(key).zrangeByScore(key, min, max);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrangeByScore(byte[] key, byte[] min,
byte[] max) {
getClient(key).zrangeByScore(key, min, max);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrangeByScore(String key, double min,
double max, int offset, int count) {
getClient(key).zrangeByScore(key, min, max, offset, count);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrangeByScore(String key, String min, String max, int offset, int count) {
getClient(key).zrangeByScore(key, min, max, offset, count);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrangeByScore(byte[] key, double min,
double max, int offset, int count) {
return zrangeByScore(key, toByteArray(min), toByteArray(max), offset, count);
}
public Response> zrangeByScore(byte[] key, byte[] min,
byte[] max, int offset, int count) {
getClient(key).zrangeByScore(key, min, max, offset, count);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrangeByScoreWithScores(String key, double min,
double max) {
getClient(key).zrangeByScoreWithScores(key, min, max);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrangeByScoreWithScores(String key, String min,
String max) {
getClient(key).zrangeByScoreWithScores(key, min, max);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrangeByScoreWithScores(byte[] key, double min,
double max) {
return zrangeByScoreWithScores(key, toByteArray(min), toByteArray(max));
}
public Response> zrangeByScoreWithScores(byte[] key, byte[] min,
byte[] max) {
getClient(key).zrangeByScoreWithScores(key, min, max);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrangeByScoreWithScores(String key, double min,
double max, int offset, int count) {
getClient(key).zrangeByScoreWithScores(key, min, max, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrangeByScoreWithScores(String key, String min,
String max, int offset, int count) {
getClient(key).zrangeByScoreWithScores(key, min, max, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrangeByScoreWithScores(byte[] key, double min,
double max, int offset, int count) {
getClient(key).zrangeByScoreWithScores(key, toByteArray(min), toByteArray(max), offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrangeByScoreWithScores(byte[] key, byte[] min,
byte[] max, int offset, int count) {
getClient(key).zrangeByScoreWithScores(key, min, max, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrevrangeByScore(String key, double max,
double min) {
getClient(key).zrevrangeByScore(key, max, min);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrevrangeByScore(byte[] key, double max,
double min) {
getClient(key).zrevrangeByScore(key, toByteArray(max), toByteArray(min));
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrevrangeByScore(String key, String max,
String min) {
getClient(key).zrevrangeByScore(key, max, min);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrevrangeByScore(byte[] key, byte[] max,
byte[] min) {
getClient(key).zrevrangeByScore(key, max, min);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrevrangeByScore(String key, double max,
double min, int offset, int count) {
getClient(key).zrevrangeByScore(key, max, min, offset, count);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrevrangeByScore(String key, String max,
String min, int offset, int count) {
getClient(key).zrevrangeByScore(key, max, min, offset, count);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrevrangeByScore(byte[] key, double max,
double min, int offset, int count) {
getClient(key).zrevrangeByScore(key, toByteArray(max), toByteArray(min), offset, count);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrevrangeByScore(byte[] key, byte[] max,
byte[] min, int offset, int count) {
getClient(key).zrevrangeByScore(key, max, min, offset, count);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrevrangeByScoreWithScores(String key,
double max, double min) {
getClient(key).zrevrangeByScoreWithScores(key, max, min);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrevrangeByScoreWithScores(String key,
String max, String min) {
getClient(key).zrevrangeByScoreWithScores(key, max, min);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrevrangeByScoreWithScores(byte[] key,
double max, double min) {
getClient(key).zrevrangeByScoreWithScores(key, toByteArray(max), toByteArray(min));
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrevrangeByScoreWithScores(byte[] key,
byte[] max, byte[] min) {
getClient(key).zrevrangeByScoreWithScores(key, max, min);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrevrangeByScoreWithScores(String key,
double max, double min, int offset, int count) {
getClient(key).zrevrangeByScoreWithScores(key, max, min, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrevrangeByScoreWithScores(String key,
String max, String min, int offset, int count) {
getClient(key).zrevrangeByScoreWithScores(key, max, min, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrevrangeByScoreWithScores(byte[] key,
double max, double min, int offset, int count) {
getClient(key).zrevrangeByScoreWithScores(key, toByteArray(max), toByteArray(min), offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrevrangeByScoreWithScores(byte[] key,
byte[] max, byte[] min, int offset, int count) {
getClient(key).zrevrangeByScoreWithScores(key, max, min, offset, count);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response> zrangeWithScores(String key, long start, long end) {
getClient(key).zrangeWithScores(key, start, end);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrangeWithScores(byte[] key, long start, long end) {
getClient(key).zrangeWithScores(key, start, end);
return getResponse(BuilderFactory.TUPLE_ZSET_BINARY);
}
public Response zrank(String key, String member) {
getClient(key).zrank(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zrank(byte[] key, byte[] member) {
getClient(key).zrank(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zrem(String key, String... member) {
getClient(key).zrem(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zrem(byte[] key, byte[]... member) {
getClient(key).zrem(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByRank(String key, long start, long end) {
getClient(key).zremrangeByRank(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByRank(byte[] key, long start, long end) {
getClient(key).zremrangeByRank(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByScore(String key, double start, double end) {
getClient(key).zremrangeByScore(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByScore(String key, String start, String end) {
getClient(key).zremrangeByScore(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByScore(byte[] key, double start, double end) {
getClient(key).zremrangeByScore(key, toByteArray(start), toByteArray(end));
return getResponse(BuilderFactory.LONG);
}
public Response zremrangeByScore(byte[] key, byte[] start, byte[] end) {
getClient(key).zremrangeByScore(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response> zrevrange(String key, long start, long end) {
getClient(key).zrevrange(key, start, end);
return getResponse(BuilderFactory.STRING_ZSET);
}
public Response> zrevrange(byte[] key, long start, long end) {
getClient(key).zrevrange(key, start, end);
return getResponse(BuilderFactory.BYTE_ARRAY_ZSET);
}
public Response> zrevrangeWithScores(String key, long start,
long end) {
getClient(key).zrevrangeWithScores(key, start, end);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response> zrevrangeWithScores(byte[] key, long start,
long end) {
getClient(key).zrevrangeWithScores(key, start, end);
return getResponse(BuilderFactory.TUPLE_ZSET);
}
public Response zrevrank(String key, String member) {
getClient(key).zrevrank(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zrevrank(byte[] key, byte[] member) {
getClient(key).zrevrank(key, member);
return getResponse(BuilderFactory.LONG);
}
public Response zscore(String key, String member) {
getClient(key).zscore(key, member);
return getResponse(BuilderFactory.DOUBLE);
}
public Response zscore(byte[] key, byte[] member) {
getClient(key).zscore(key, member);
return getResponse(BuilderFactory.DOUBLE);
}
public Response bitcount(String key) {
getClient(key).bitcount(key);
return getResponse(BuilderFactory.LONG);
}
public Response bitcount(String key, long start, long end) {
getClient(key).bitcount(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response bitcount(byte[] key) {
getClient(key).bitcount(key);
return getResponse(BuilderFactory.LONG);
}
public Response bitcount(byte[] key, long start, long end) {
getClient(key).bitcount(key, start, end);
return getResponse(BuilderFactory.LONG);
}
public Response dump(String key) {
getClient(key).dump(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response dump(byte[] key) {
getClient(key).dump(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response migrate(String host, int port, String key, int destinationDb, int timeout) {
getClient(key).migrate(host, port, key, destinationDb, timeout);
return getResponse(BuilderFactory.STRING);
}
public Response migrate(byte[] host, int port, byte[] key, int destinationDb, int timeout) {
getClient(key).migrate(host, port, key, destinationDb, timeout);
return getResponse(BuilderFactory.STRING);
}
public Response objectRefcount(String key) {
getClient(key).objectRefcount(key);
return getResponse(BuilderFactory.LONG);
}
public Response objectRefcount(byte[] key) {
getClient(key).objectRefcount(key);
return getResponse(BuilderFactory.LONG);
}
public Response objectEncoding(String key) {
getClient(key).objectEncoding(key);
return getResponse(BuilderFactory.STRING);
}
public Response objectEncoding(byte[] key) {
getClient(key).objectEncoding(key);
return getResponse(BuilderFactory.BYTE_ARRAY);
}
public Response objectIdletime(String key) {
getClient(key).objectIdletime(key);
return getResponse(BuilderFactory.LONG);
}
public Response objectIdletime(byte[] key) {
getClient(key).objectIdletime(key);
return getResponse(BuilderFactory.LONG);
}
public Response pexpire(String key, int milliseconds) {
getClient(key).pexpire(key, milliseconds);
return getResponse(BuilderFactory.LONG);
}
public Response pexpire(byte[] key, int milliseconds) {
getClient(key).pexpire(key, milliseconds);
return getResponse(BuilderFactory.LONG);
}
public Response pexpireAt(String key, long millisecondsTimestamp) {
getClient(key).pexpireAt(key, millisecondsTimestamp);
return getResponse(BuilderFactory.LONG);
}
public Response pexpireAt(byte[] key, long millisecondsTimestamp) {
getClient(key).pexpireAt(key, millisecondsTimestamp);
return getResponse(BuilderFactory.LONG);
}
public Response pttl(String key) {
getClient(key).pttl(key);
return getResponse(BuilderFactory.LONG);
}
public Response pttl(byte[] key) {
getClient(key).pttl(key);
return getResponse(BuilderFactory.LONG);
}
public Response restore(String key, int ttl, byte[] serializedValue) {
getClient(key).restore(key, ttl, serializedValue);
return getResponse(BuilderFactory.STRING);
}
public Response restore(byte[] key, int ttl, byte[] serializedValue) {
getClient(key).restore(key, ttl, serializedValue);
return getResponse(BuilderFactory.STRING);
}
public Response incrByFloat(String key, double increment) {
getClient(key).incrByFloat(key, increment);
return getResponse(BuilderFactory.DOUBLE);
}
public Response incrByFloat(byte[] key, double increment) {
getClient(key).incrByFloat(key, increment);
return getResponse(BuilderFactory.DOUBLE);
}
public Response psetex(String key, int milliseconds, String value) {
getClient(key).psetex(key, milliseconds, value);
return getResponse(BuilderFactory.STRING);
}
public Response psetex(byte[] key, int milliseconds, byte[] value) {
getClient(key).psetex(key, milliseconds, value);
return getResponse(BuilderFactory.STRING);
}
public Response set(String key, String value, String nxxx) {
getClient(key).set(key, value, nxxx);
return getResponse(BuilderFactory.STRING);
}
public Response set(byte[] key, byte[] value, byte[] nxxx) {
getClient(key).set(key, value, nxxx);
return getResponse(BuilderFactory.STRING);
}
public Response set(String key, String value, String nxxx, String expx, int time) {
getClient(key).set(key, value, nxxx, expx, time);
return getResponse(BuilderFactory.STRING);
}
public Response set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, int time) {
getClient(key).set(key, value, nxxx, expx, time);
return getResponse(BuilderFactory.STRING);
}
public Response hincrByFloat(String key, String field, double increment) {
getClient(key).hincrByFloat(key, field, increment);
return getResponse(BuilderFactory.DOUBLE);
}
public Response hincrByFloat(byte[] key, byte[] field, double increment) {
getClient(key).hincrByFloat(key, field, increment);
return getResponse(BuilderFactory.DOUBLE);
}
public Response eval(String script) {
return this.eval(script, 0, new String[0]);
}
public Response eval(String script, List keys, List args) {
String[] argv = Jedis.getParams(keys, args);
return this.eval(script, keys.size(), argv);
}
public Response eval(String script, int numKeys, String[] argv) {
getClient(script).eval(script, numKeys, argv);
return getResponse(BuilderFactory.STRING);
}
public Response evalsha(String script) {
return this.evalsha(script, 0, new String[0]);
}
public Response evalsha(String sha1, List keys, List args) {
String[] argv = Jedis.getParams(keys, args);
return this.evalsha(sha1, keys.size(), argv);
}
public Response evalsha(String sha1, int numKeys, String[] argv) {
getClient(sha1).evalsha(sha1, numKeys, argv);
return getResponse(BuilderFactory.STRING);
}
}