com.base4j.j2cache.redis.client.ClusterRedisClient Maven / Gradle / Ivy
The newest version!
package com.base4j.j2cache.redis.client;
import redis.clients.jedis.*;
import redis.clients.jedis.params.geo.GeoRadiusParam;
import redis.clients.jedis.params.sortedset.ZAddParams;
import redis.clients.jedis.params.sortedset.ZIncrByParams;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author zhangyw
* @date 2017/1/13 11:14
*/
public class ClusterRedisClient implements RedisClient {
private JedisCluster jedis;
public ClusterRedisClient(JedisCluster jedis) {
this.jedis = jedis;
}
@Override
public String set(String key, String value) {
return jedis.set(key, value);
}
@Override
public String set(String key, String value, String nxxx, String expx, long time) {
return jedis.set(key, value, nxxx, expx, time);
}
@Override
public String get(String key) {
return jedis.get(key);
}
@Override
public Boolean exists(String key) {
return jedis.exists(key);
}
@Override
public Long exists(String... keys) {
return jedis.exists(keys);
}
@Override
public Long persist(String key) {
return jedis.persist(key);
}
@Override
public String type(String key) {
return jedis.type(key);
}
@Override
public Long expire(String key, int seconds) {
return jedis.expire(key, seconds);
}
@Override
public Long pexpire(String key, long milliseconds) {
return jedis.pexpire(key, milliseconds);
}
@Override
public Long expireAt(String key, long unixTime) {
return jedis.expireAt(key, unixTime);
}
@Override
public Long pexpireAt(String key, long millisecondsTimestamp) {
return jedis.pexpireAt(key, millisecondsTimestamp);
}
@Override
public Long ttl(String key) {
return jedis.ttl(key);
}
@Override
public Long pttl(String key) {
return jedis.pttl(key);
}
@Override
public Boolean setbit(String key, long offset, boolean value) {
return jedis.setbit(key, offset, value);
}
@Override
public Boolean setbit(String key, long offset, String value) {
return jedis.setbit(key, offset, value);
}
@Override
public Boolean getbit(String key, long offset) {
return jedis.getbit(key, offset);
}
@Override
public Long setrange(String key, long offset, String value) {
return jedis.setrange(key, offset, value);
}
@Override
public String getrange(String key, long startOffset, long endOffset) {
return jedis.getrange(key, startOffset, endOffset);
}
@Override
public String getSet(String key, String value) {
return jedis.getSet(key, value);
}
@Override
public Long setnx(String key, String value) {
return jedis.setnx(key, value);
}
@Override
public String setex(String key, int seconds, String value) {
return jedis.setex(key, seconds, value);
}
@Override
public String psetex(String key, long milliseconds, String value) {
return jedis.psetex(key, milliseconds, value);
}
@Override
public Long decrBy(String key, long integer) {
return jedis.decrBy(key, integer);
}
@Override
public Long decr(String key) {
return jedis.decr(key);
}
@Override
public Long incrBy(String key, long integer) {
return jedis.incrBy(key, integer);
}
@Override
public Double incrByFloat(String key, double value) {
return jedis.incrByFloat(key, value);
}
@Override
public Long incr(String key) {
return jedis.incr(key);
}
@Override
public Long append(String key, String value) {
return jedis.append(key, value);
}
@Override
public String substr(String key, int start, int end) {
return jedis.substr(key, start, end);
}
@Override
public Long hset(String key, String field, String value) {
return jedis.hset(key, field, value);
}
@Override
public String hget(String key, String field) {
return jedis.hget(key, field);
}
@Override
public Long hsetnx(String key, String field, String value) {
return jedis.hsetnx(key, field, value);
}
@Override
public String hmset(String key, Map hash) {
return jedis.hmset(key, hash);
}
@Override
public List hmget(String key, String... fields) {
return jedis.hmget(key, fields);
}
@Override
public Long hincrBy(String key, String field, long value) {
return jedis.hincrBy(key, field, value);
}
@Override
public Double hincrByFloat(String key, String field, double value) {
return jedis.hincrByFloat(key, field, value);
}
@Override
public Boolean hexists(String key, String field) {
return jedis.hexists(key, field);
}
@Override
public Long hdel(String key, String... field) {
return jedis.hdel(key, field);
}
@Override
public Long hlen(String key) {
return jedis.hlen(key);
}
@Override
public Set hkeys(String key) {
return jedis.hkeys(key);
}
@Override
public List hvals(String key) {
return jedis.hvals(key);
}
@Override
public Map hgetAll(String key) {
return jedis.hgetAll(key);
}
@Override
public Long rpush(String key, String... string) {
return jedis.rpush(key, string);
}
@Override
public Long lpush(String key, String... string) {
return jedis.lpush(key, string);
}
@Override
public Long llen(String key) {
return jedis.llen(key);
}
@Override
public List lrange(String key, long start, long end) {
return jedis.lrange(key, start, end);
}
@Override
public String ltrim(String key, long start, long end) {
return jedis.ltrim(key, start, end);
}
@Override
public String lindex(String key, long index) {
return jedis.lindex(key, index);
}
@Override
public String lset(String key, long index, String value) {
return jedis.lset(key, index, value);
}
@Override
public Long lrem(String key, long count, String value) {
return jedis.lrem(key, count, value);
}
@Override
public String lpop(String key) {
return jedis.lpop(key);
}
@Override
public String rpop(String key) {
return jedis.rpop(key);
}
@Override
public Long sadd(String key, String... member) {
return jedis.sadd(key, member);
}
@Override
public Set smembers(String key) {
return jedis.smembers(key);
}
@Override
public Long srem(String key, String... member) {
return jedis.srem(key, member);
}
@Override
public String spop(String key) {
return jedis.spop(key);
}
@Override
public Set spop(String key, long count) {
return jedis.spop(key, count);
}
@Override
public Long scard(String key) {
return jedis.scard(key);
}
@Override
public Boolean sismember(String key, String member) {
return jedis.sismember(key, member);
}
@Override
public String srandmember(String key) {
return jedis.srandmember(key);
}
@Override
public List srandmember(String key, int count) {
return jedis.srandmember(key, count);
}
@Override
public Long strlen(String key) {
return jedis.strlen(key);
}
@Override
public Long zadd(String key, double score, String member) {
return jedis.zadd(key, score, member);
}
@Override
public Long zadd(String key, double score, String member, ZAddParams params) {
return jedis.zadd(key, score, member, params);
}
@Override
public Long zadd(String key, Map scoreMembers) {
return jedis.zadd(key, scoreMembers);
}
@Override
public Long zadd(String key, Map scoreMembers, ZAddParams params) {
return jedis.zadd(key, scoreMembers, params);
}
@Override
public Set zrange(String key, long start, long end) {
return jedis.zrange(key, start, end);
}
@Override
public Long zrem(String key, String... member) {
return jedis.zrem(key, member);
}
@Override
public Double zincrby(String key, double score, String member) {
return jedis.zincrby(key, score, member);
}
@Override
public Double zincrby(String key, double score, String member, ZIncrByParams params) {
return jedis.zincrby(key, score, member, params);
}
@Override
public Long zrank(String key, String member) {
return jedis.zrank(key, member);
}
@Override
public Long zrevrank(String key, String member) {
return jedis.zrevrank(key, member);
}
@Override
public Set zrevrange(String key, long start, long end) {
return jedis.zrevrange(key, start, end);
}
@Override
public Set zrangeWithScores(String key, long start, long end) {
return jedis.zrangeWithScores(key, start, end);
}
@Override
public Set zrevrangeWithScores(String key, long start, long end) {
return jedis.zrevrangeWithScores(key, start, end);
}
@Override
public Long zcard(String key) {
return jedis.zcard(key);
}
@Override
public Double zscore(String key, String member) {
return jedis.zscore(key, member);
}
@Override
public List sort(String key) {
return jedis.sort(key);
}
@Override
public List sort(String key, SortingParams sortingParameters) {
return jedis.sort(key, sortingParameters);
}
@Override
public Long zcount(String key, double min, double max) {
return jedis.zcount(key, min, max);
}
@Override
public Long zcount(String key, String min, String max) {
return jedis.zcount(key, min, max);
}
@Override
public Set zrangeByScore(String key, double min, double max) {
return jedis.zrangeByScore(key, min, max);
}
@Override
public Set zrangeByScore(String key, String min, String max) {
return jedis.zrangeByScore(key, min, max);
}
@Override
public Set zrevrangeByScore(String key, double max, double min) {
return jedis.zrevrangeByScore(key, max, min);
}
@Override
public Set zrangeByScore(String key, double min, double max, int offset, int count) {
return jedis.zrangeByScore(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(String key, String max, String min) {
return jedis.zrevrangeByScore(key, max, min);
}
@Override
public Set zrangeByScore(String key, String min, String max, int offset, int count) {
return jedis.zrangeByScore(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(String key, double max, double min, int offset, int count) {
return jedis.zrevrangeByScore(key, max, min, offset, count);
}
@Override
public Set zrangeByScoreWithScores(String key, double min, double max) {
return jedis.zrangeByScoreWithScores(key, min, max);
}
@Override
public Set zrevrangeByScoreWithScores(String key, double max, double min) {
return jedis.zrevrangeByScoreWithScores(key, max, min);
}
@Override
public Set zrangeByScoreWithScores(String key, double min, double max, int offset, int count) {
return jedis.zrangeByScoreWithScores(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(String key, String max, String min, int offset, int count) {
return jedis.zrevrangeByScore(key, max, min, offset, count);
}
@Override
public Set zrangeByScoreWithScores(String key, String min, String max) {
return jedis.zrangeByScoreWithScores(key, min, max);
}
@Override
public Set zrevrangeByScoreWithScores(String key, String max, String min) {
return jedis.zrevrangeByScoreWithScores(key, max, min);
}
@Override
public Set zrangeByScoreWithScores(String key, String min, String max, int offset, int count) {
return jedis.zrangeByScoreWithScores(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count) {
return jedis.zrevrangeByScoreWithScores(key, max, min, offset, count);
}
@Override
public Set zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count) {
return jedis.zrevrangeByScoreWithScores(key, max, min, offset, count);
}
@Override
public Long zremrangeByRank(String key, long start, long end) {
return jedis.zremrangeByRank(key, start, end);
}
@Override
public Long zremrangeByScore(String key, double start, double end) {
return jedis.zremrangeByScore(key, start, end);
}
@Override
public Long zremrangeByScore(String key, String start, String end) {
return jedis.zremrangeByScore(key, start, end);
}
@Override
public Long zlexcount(String key, String min, String max) {
return jedis.zlexcount(key, min, max);
}
@Override
public Set zrangeByLex(String key, String min, String max) {
return jedis.zrangeByLex(key, min, max);
}
@Override
public Set zrangeByLex(String key, String min, String max, int offset, int count) {
return jedis.zrangeByLex(key, min, max, offset, count);
}
@Override
public Set zrevrangeByLex(String key, String max, String min) {
return jedis.zrevrangeByLex(key, max, min);
}
@Override
public Set zrevrangeByLex(String key, String max, String min, int offset, int count) {
return jedis.zrevrangeByLex(key, max, min, offset, count);
}
@Override
public Long zremrangeByLex(String key, String min, String max) {
return jedis.zremrangeByLex(key, min, max);
}
@Override
public Long linsert(String key, BinaryClient.LIST_POSITION where, String pivot, String value) {
return jedis.linsert(key, where, pivot, value);
}
@Override
public Long lpushx(String key, String... string) {
return jedis.lpushx(key, string);
}
@Override
public Long rpushx(String key, String... string) {
return jedis.rpushx(key, string);
}
@Override
public Long del(String key) {
return jedis.del(key);
}
@Override
public String echo(String string) {
return jedis.echo(string);
}
@Override
public Long bitcount(String key) {
return jedis.bitcount(key);
}
@Override
public Long bitcount(String key, long start, long end) {
return jedis.bitcount(key, start, end);
}
@Override
public ScanResult scan(String cursor, ScanParams params) {
// return jedis.scan(cursor, params);
throw new UnsupportedOperationException("jedis 2.8 , not support");
}
@Override
public Long bitpos(String key, boolean value) {
return jedis.bitpos(key, value);
}
@Override
public Long bitpos(String key, boolean value, BitPosParams params) {
return jedis.bitpos(key, value, params);
}
@Override
public ScanResult> hscan(String key, String cursor) {
return jedis.hscan(key, cursor);
}
@Override
public ScanResult> hscan(String key, String cursor, ScanParams params) {
return jedis.hscan(key, cursor, params);
}
@Override
public ScanResult sscan(String key, String cursor) {
return jedis.sscan(key, cursor);
}
@Override
public ScanResult sscan(String key, String cursor, ScanParams params) {
return jedis.sscan(key, cursor, params);
}
@Override
public ScanResult zscan(String key, String cursor) {
return jedis.zscan(key, cursor);
}
@Override
public ScanResult zscan(String key, String cursor, ScanParams params) {
return jedis.zscan(key, cursor, params);
}
@Override
public Long pfadd(String key, String... elements) {
return jedis.pfadd(key, elements);
}
@Override
public long pfcount(String key) {
return jedis.pfcount(key);
}
@Override
public List blpop(int timeout, String key) {
return jedis.blpop(timeout, key);
}
@Override
public List brpop(int timeout, String key) {
return jedis.brpop(timeout, key);
}
@Override
public Long del(String... keys) {
return jedis.del(keys);
}
@Override
public List blpop(int timeout, String... keys) {
return jedis.blpop(timeout, keys);
}
@Override
public List brpop(int timeout, String... keys) {
return jedis.brpop(timeout, keys);
}
@Override
public List mget(String... keys) {
return jedis.mget(keys);
}
@Override
public String mset(String... keysvalues) {
return jedis.mset(keysvalues);
}
@Override
public Long msetnx(String... keysvalues) {
return jedis.msetnx(keysvalues);
}
@Override
public String rename(String oldkey, String newkey) {
return jedis.rename(oldkey, newkey);
}
@Override
public Long renamenx(String oldkey, String newkey) {
return jedis.renamenx(oldkey, newkey);
}
@Override
public String rpoplpush(String srckey, String dstkey) {
return jedis.rpoplpush(srckey, dstkey);
}
@Override
public Set sdiff(String... keys) {
return jedis.sdiff(keys);
}
@Override
public Long sdiffstore(String dstkey, String... keys) {
return jedis.sdiffstore(dstkey, keys);
}
@Override
public Set sinter(String... keys) {
return jedis.sinter(keys);
}
@Override
public Long sinterstore(String dstkey, String... keys) {
return jedis.sinterstore(dstkey, keys);
}
@Override
public Long smove(String srckey, String dstkey, String member) {
return jedis.smove(srckey, dstkey, member);
}
@Override
public Long sort(String key, SortingParams sortingParameters, String dstkey) {
return jedis.sort(key, sortingParameters, dstkey);
}
@Override
public Long sort(String key, String dstkey) {
return jedis.sort(key, dstkey);
}
@Override
public Set sunion(String... keys) {
return jedis.sunion(keys);
}
@Override
public Long sunionstore(String dstkey, String... keys) {
return jedis.sunionstore(dstkey, keys);
}
@Override
public Long zinterstore(String dstkey, String... sets) {
return jedis.zinterstore(dstkey, sets);
}
@Override
public Long zinterstore(String dstkey, ZParams params, String... sets) {
return jedis.zinterstore(dstkey, params, sets);
}
@Override
public Long zunionstore(String dstkey, String... sets) {
return jedis.zunionstore(dstkey, sets);
}
@Override
public Long zunionstore(String dstkey, ZParams params, String... sets) {
return jedis.zunionstore(dstkey, params, sets);
}
@Override
public String brpoplpush(String source, String destination, int timeout) {
return jedis.brpoplpush(source, destination, timeout);
}
@Override
public Long publish(String channel, String message) {
return jedis.publish(channel, message);
}
@Override
public void subscribe(JedisPubSub jedisPubSub, String... channels) {
jedis.subscribe(jedisPubSub, channels);
}
@Override
public void psubscribe(JedisPubSub jedisPubSub, String... patterns) {
jedis.psubscribe(jedisPubSub, patterns);
}
@Override
public Long bitop(BitOP op, String destKey, String... srcKeys) {
return jedis.bitop(op, destKey, srcKeys);
}
@Override
public String pfmerge(String destkey, String... sourcekeys) {
return jedis.pfmerge(destkey, sourcekeys);
}
@Override
public long pfcount(String... keys) {
return jedis.pfcount(keys);
}
public Object eval(String script, int keyCount, String... params) {
return jedis.eval(script, keyCount, params);
}
public Object eval(String script, String key) {
return jedis.eval(script, key);
}
public Object eval(String script, List keys, List args) {
return jedis.eval(script, keys, args);
}
public Object evalsha(String sha1, int keyCount, String... params) {
return jedis.evalsha(sha1, keyCount, params);
}
public Object evalsha(String sha1, List keys, List args) {
return jedis.evalsha(sha1, keys, args);
}
public Object evalsha(String script, String key) {
return jedis.evalsha(script, key);
}
public Boolean scriptExists(String sha1, String key) {
return jedis.scriptExists(sha1, key);
}
public List scriptExists(String key, String... sha1) {
return jedis.scriptExists(key, sha1);
}
public String scriptLoad(String script, String key) {
return jedis.scriptLoad(script, key);
}
@Override
@Deprecated
public String set(String key, String value, String nxxx) {
return jedis.set(key, value, nxxx);
}
@Override
@Deprecated
public List blpop(String arg) {
return jedis.blpop(arg);
}
@Override
@Deprecated
public List brpop(String arg) {
return jedis.brpop(arg);
}
@Override
@Deprecated
public Long move(String key, int dbIndex) {
return jedis.move(key, dbIndex);
}
@Override
@Deprecated
public ScanResult> hscan(String key, int cursor) {
return jedis.hscan(key, cursor);
}
@Override
@Deprecated
public ScanResult sscan(String key, int cursor) {
return jedis.sscan(key, cursor);
}
@Override
@Deprecated
public ScanResult zscan(String key, int cursor) {
return jedis.zscan(key, cursor);
}
@Override
public Long geoadd(String key, double longitude, double latitude, String member) {
return jedis.geoadd(key, longitude, latitude, member);
}
@Override
public Long geoadd(String key, Map memberCoordinateMap) {
return jedis.geoadd(key, memberCoordinateMap);
}
@Override
public Double geodist(String key, String member1, String member2) {
return jedis.geodist(key, member1, member2);
}
@Override
public Double geodist(String key, String member1, String member2, GeoUnit unit) {
return jedis.geodist(key, member1, member2, unit);
}
@Override
public List geohash(String key, String... members) {
return jedis.geohash(key, members);
}
@Override
public List geopos(String key, String... members) {
return jedis.geopos(key, members);
}
@Override
public List georadius(String key, double longitude, double latitude, double radius, GeoUnit unit) {
return jedis.georadius(key, longitude, latitude, radius, unit);
}
@Override
public List georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param) {
return jedis.georadius(key, longitude, latitude, radius, unit, param);
}
@Override
public List georadiusByMember(String key, String member, double radius, GeoUnit unit) {
return jedis.georadiusByMember(key, member, radius, unit);
}
@Override
public List georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param) {
return jedis.georadiusByMember(key, member, radius, unit, param);
}
@Override
public void close() throws IOException {
// jedis.close();
// cluster needn`t close
}
public Map getClusterNodes() {
return jedis.getClusterNodes();
}
@Override
public String set(byte[] key, byte[] value) {
return jedis.set(key, value);
}
@Override
public String set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, long time) {
return jedis.set(key, value, nxxx, expx, time);
}
@Override
public byte[] get(byte[] key) {
return jedis.get(key);
}
@Override
public Boolean exists(byte[] key) {
return jedis.exists(key);
}
@Override
public Long exists(byte[]... keys) {
return jedis.exists(keys);
}
@Override
public Long persist(byte[] key) {
return jedis.persist(key);
}
@Override
public String type(byte[] key) {
return jedis.type(key);
}
@Override
public Long expire(byte[] key, int seconds) {
return jedis.expire(key, seconds);
}
@Override
public Long pexpire(byte[] key, long milliseconds) {
return jedis.pexpire(key, milliseconds);
}
@Override
public Long expireAt(byte[] key, long unixTime) {
return jedis.expireAt(key, unixTime);
}
@Override
public Long pexpireAt(byte[] key, long millisecondsTimestamp) {
return jedis.pexpireAt(key, millisecondsTimestamp);
}
@Override
public Long ttl(byte[] key) {
return jedis.ttl(key);
}
@Override
public Boolean setbit(byte[] key, long offset, boolean value) {
return jedis.setbit(key, offset, value);
}
@Override
public Boolean setbit(byte[] key, long offset, byte[] value) {
return jedis.setbit(key, offset, value);
}
@Override
public Boolean getbit(byte[] key, long offset) {
return jedis.getbit(key, offset);
}
@Override
public Long setrange(byte[] key, long offset, byte[] value) {
return jedis.setrange(key, offset, value);
}
@Override
public byte[] getrange(byte[] key, long startOffset, long endOffset) {
return jedis.getrange(key, startOffset, endOffset);
}
@Override
public byte[] getSet(byte[] key, byte[] value) {
return jedis.getSet(key, value);
}
@Override
public Long setnx(byte[] key, byte[] value) {
return jedis.setnx(key, value);
}
@Override
public String setex(byte[] key, int seconds, byte[] value) {
return jedis.setex(key, seconds, value);
}
@Override
public Long decrBy(byte[] key, long integer) {
return jedis.decrBy(key, integer);
}
@Override
public Long decr(byte[] key) {
return jedis.decr(key);
}
@Override
public Long incrBy(byte[] key, long integer) {
return jedis.incrBy(key, integer);
}
@Override
public Double incrByFloat(byte[] key, double value) {
return jedis.incrByFloat(key, value);
}
@Override
public Long incr(byte[] key) {
return jedis.incr(key);
}
@Override
public Long append(byte[] key, byte[] value) {
return jedis.append(key, value);
}
@Override
public byte[] substr(byte[] key, int start, int end) {
return jedis.substr(key, start, end);
}
@Override
public Long hset(byte[] key, byte[] field, byte[] value) {
return jedis.hset(key, field, value);
}
@Override
public byte[] hget(byte[] key, byte[] field) {
return jedis.hget(key, field);
}
@Override
public Long hsetnx(byte[] key, byte[] field, byte[] value) {
return jedis.hsetnx(key, field, value);
}
@Override
public String hmset(byte[] key, Map hash) {
return jedis.hmset(key, hash);
}
@Override
public List hmget(byte[] key, byte[]... fields) {
return jedis.hmget(key, fields);
}
@Override
public Long hincrBy(byte[] key, byte[] field, long value) {
return jedis.hincrBy(key, field, value);
}
@Override
public Double hincrByFloat(byte[] key, byte[] field, double value) {
return jedis.hincrByFloat(key, field, value);
}
@Override
public Boolean hexists(byte[] key, byte[] field) {
return jedis.hexists(key, field);
}
@Override
public Long hdel(byte[] key, byte[]... field) {
return jedis.hdel(key, field);
}
@Override
public Long hlen(byte[] key) {
return jedis.hlen(key);
}
@Override
public Set hkeys(byte[] key) {
return jedis.hkeys(key);
}
@Override
public Collection hvals(byte[] key) {
return jedis.hvals(key);
}
@Override
public Map hgetAll(byte[] key) {
return jedis.hgetAll(key);
}
@Override
public Long rpush(byte[] key, byte[]... args) {
return jedis.rpush(key, args);
}
@Override
public Long lpush(byte[] key, byte[]... args) {
return jedis.lpush(key, args);
}
@Override
public Long llen(byte[] key) {
return jedis.llen(key);
}
@Override
public List lrange(byte[] key, long start, long end) {
return jedis.lrange(key, start, end);
}
@Override
public String ltrim(byte[] key, long start, long end) {
return jedis.ltrim(key, start, end);
}
@Override
public byte[] lindex(byte[] key, long index) {
return jedis.lindex(key, index);
}
@Override
public String lset(byte[] key, long index, byte[] value) {
return jedis.lset(key, index, value);
}
@Override
public Long lrem(byte[] key, long count, byte[] value) {
return jedis.lrem(key, count, value);
}
@Override
public byte[] lpop(byte[] key) {
return jedis.lpop(key);
}
@Override
public byte[] rpop(byte[] key) {
return jedis.rpop(key);
}
@Override
public Long sadd(byte[] key, byte[]... member) {
return jedis.sadd(key, member);
}
@Override
public Set smembers(byte[] key) {
return jedis.smembers(key);
}
@Override
public Long srem(byte[] key, byte[]... member) {
return jedis.srem(key, member);
}
@Override
public byte[] spop(byte[] key) {
return jedis.spop(key);
}
@Override
public Set spop(byte[] key, long count) {
return jedis.spop(key, count);
}
@Override
public Long scard(byte[] key) {
return jedis.scard(key);
}
@Override
public Boolean sismember(byte[] key, byte[] member) {
return jedis.sismember(key, member);
}
@Override
public byte[] srandmember(byte[] key) {
return jedis.srandmember(key);
}
@Override
public Long strlen(byte[] key) {
return jedis.strlen(key);
}
@Override
public Long zadd(byte[] key, double score, byte[] member) {
return jedis.zadd(key, score, member);
}
@Override
public Long zadd(byte[] key, Map scoreMembers) {
return jedis.zadd(key, scoreMembers);
}
@Override
public Long zadd(byte[] key, double score, byte[] member, ZAddParams params) {
return jedis.zadd(key, score, member, params);
}
@Override
public Long zadd(byte[] key, Map scoreMembers, ZAddParams params) {
return jedis.zadd(key, scoreMembers, params);
}
@Override
public Set zrange(byte[] key, long start, long end) {
return jedis.zrange(key, start, end);
}
@Override
public Long zrem(byte[] key, byte[]... member) {
return jedis.zrem(key, member);
}
@Override
public Double zincrby(byte[] key, double score, byte[] member) {
return jedis.zincrby(key, score, member);
}
@Override
public Double zincrby(byte[] key, double score, byte[] member, ZIncrByParams params) {
return jedis.zincrby(key, score, member, params);
}
@Override
public Long zrank(byte[] key, byte[] member) {
return jedis.zrank(key, member);
}
@Override
public Long zrevrank(byte[] key, byte[] member) {
return jedis.zrevrank(key, member);
}
@Override
public Set zrevrange(byte[] key, long start, long end) {
return jedis.zrevrange(key, start, end);
}
@Override
public Set zrangeWithScores(byte[] key, long start, long end) {
return jedis.zrangeWithScores(key, start, end);
}
@Override
public Set zrevrangeWithScores(byte[] key, long start, long end) {
return jedis.zrevrangeWithScores(key, start, end);
}
@Override
public Long zcard(byte[] key) {
return jedis.zcard(key);
}
@Override
public Double zscore(byte[] key, byte[] member) {
return jedis.zscore(key, member);
}
@Override
public List sort(byte[] key) {
return jedis.sort(key);
}
@Override
public List sort(byte[] key, SortingParams sortingParameters) {
return jedis.sort(key, sortingParameters);
}
@Override
public Long zcount(byte[] key, double min, double max) {
return jedis.zcount(key, min, max);
}
@Override
public Long zcount(byte[] key, byte[] min, byte[] max) {
return jedis.zcount(key, min, max);
}
@Override
public Set zrangeByScore(byte[] key, double min, double max) {
return jedis.zrangeByScore(key, min, max);
}
@Override
public Set zrangeByScore(byte[] key, byte[] min, byte[] max) {
return jedis.zrangeByScore(key, min, max);
}
@Override
public Set zrevrangeByScore(byte[] key, double max, double min) {
return jedis.zrevrangeByScore(key, max, min);
}
@Override
public Set zrangeByScore(byte[] key, double min, double max, int offset, int count) {
return jedis.zrangeByScore(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(byte[] key, byte[] max, byte[] min) {
return jedis.zrevrangeByScore(key, max, min);
}
@Override
public Set zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count) {
return jedis.zrangeByScore(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(byte[] key, double max, double min, int offset, int count) {
return jedis.zrevrangeByScore(key, max, min, offset, count);
}
@Override
public Set zrangeByScoreWithScores(byte[] key, double min, double max) {
return jedis.zrangeByScoreWithScores(key, min, max);
}
@Override
public Set zrevrangeByScoreWithScores(byte[] key, double max, double min) {
return jedis.zrevrangeByScoreWithScores(key, max, min);
}
@Override
public Set zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count) {
return jedis.zrangeByScoreWithScores(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count) {
return jedis.zrevrangeByScore(key, max, min, offset, count);
}
@Override
public Set zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max) {
return jedis.zrangeByScoreWithScores(key, min, max);
}
@Override
public Set zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min) {
return jedis.zrevrangeByScoreWithScores(key, max, min);
}
@Override
public Set zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count) {
return jedis.zrangeByScoreWithScores(key, min, max, offset, count);
}
@Override
public Set zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count) {
return jedis.zrevrangeByScoreWithScores(key, max, min, offset, count);
}
@Override
public Set zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count) {
return jedis.zrevrangeByScoreWithScores(key, max, min, offset, count);
}
@Override
public Long zremrangeByRank(byte[] key, long start, long end) {
return jedis.zremrangeByRank(key, start, end);
}
@Override
public Long zremrangeByScore(byte[] key, double start, double end) {
return jedis.zremrangeByScore(key, start, end);
}
@Override
public Long zremrangeByScore(byte[] key, byte[] start, byte[] end) {
return jedis.zremrangeByScore(key, start, end);
}
@Override
public Long linsert(byte[] key, BinaryClient.LIST_POSITION where, byte[] pivot, byte[] value) {
return jedis.linsert(key, where, pivot, value);
}
@Override
public Long lpushx(byte[] key, byte[]... arg) {
return jedis.lpushx(key, arg);
}
@Override
public Long rpushx(byte[] key, byte[]... arg) {
return jedis.rpushx(key, arg);
}
@Override
public Long del(byte[] key) {
return jedis.del(key);
}
@Override
public byte[] echo(byte[] arg) {
return jedis.echo(arg);
}
@Override
public Long bitcount(byte[] key) {
return jedis.bitcount(key);
}
@Override
public Long bitcount(byte[] key, long start, long end) {
return jedis.bitcount(key, start, end);
}
@Override
public Long pfadd(byte[] key, byte[]... elements) {
return jedis.pfadd(key, elements);
}
@Override
public long pfcount(byte[] key) {
return jedis.pfcount(key);
}
@Override
public List srandmember(byte[] key, int count) {
return jedis.srandmember(key, count);
}
@Override
public Long zlexcount(byte[] key, byte[] min, byte[] max) {
return jedis.zlexcount(key, min, max);
}
@Override
public Set zrangeByLex(byte[] key, byte[] min, byte[] max) {
return jedis.zrangeByLex(key, min, max);
}
@Override
public Set zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count) {
return jedis.zrangeByLex(key, min, max, offset, count);
}
@Override
public Set zrevrangeByLex(byte[] key, byte[] max, byte[] min) {
return jedis.zrevrangeByLex(key, max, min);
}
@Override
public Set zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count) {
return jedis.zrevrangeByLex(key, max, min, offset, count);
}
@Override
public Long zremrangeByLex(byte[] key, byte[] min, byte[] max) {
return jedis.zremrangeByLex(key, min, max);
}
public Object eval(byte[] script, byte[] keyCount, byte[]... params) {
return jedis.eval(script, keyCount, params);
}
public Object eval(byte[] script, int keyCount, byte[]... params) {
return jedis.eval(script, keyCount, params);
}
public Object eval(byte[] script, List keys, List args) {
return jedis.eval(script, keys, args);
}
public Object eval(byte[] script, byte[] key) {
return jedis.eval(script, key);
}
public Object evalsha(byte[] script, byte[] key) {
return jedis.evalsha(script, key);
}
public Object evalsha(byte[] sha1, List keys, List args) {
return jedis.evalsha(sha1, keys, args);
}
public Object evalsha(byte[] sha1, int keyCount, byte[]... params) {
return jedis.evalsha(sha1, keyCount, params);
}
public List scriptExists(byte[] key, byte[][] sha1) {
return jedis.scriptExists(key, sha1);
}
public byte[] scriptLoad(byte[] script, byte[] key) {
return jedis.scriptLoad(script, key);
}
public String scriptFlush(byte[] key) {
return jedis.scriptFlush(key);
}
public String scriptKill(byte[] key) {
return jedis.scriptKill(key);
}
@Override
public Long del(byte[]... keys) {
return jedis.del(keys);
}
@Override
public List blpop(int timeout, byte[]... keys) {
return jedis.blpop(timeout, keys);
}
@Override
public List brpop(int timeout, byte[]... keys) {
return jedis.brpop(timeout, keys);
}
@Override
public List mget(byte[]... keys) {
return jedis.mget(keys);
}
@Override
public String mset(byte[]... keysvalues) {
return jedis.mset(keysvalues);
}
@Override
public Long msetnx(byte[]... keysvalues) {
return jedis.msetnx(keysvalues);
}
@Override
public String rename(byte[] oldkey, byte[] newkey) {
return jedis.rename(oldkey, newkey);
}
@Override
public Long renamenx(byte[] oldkey, byte[] newkey) {
return jedis.renamenx(oldkey, newkey);
}
@Override
public byte[] rpoplpush(byte[] srckey, byte[] dstkey) {
return jedis.rpoplpush(srckey, dstkey);
}
@Override
public Set sdiff(byte[]... keys) {
return jedis.sdiff(keys);
}
@Override
public Long sdiffstore(byte[] dstkey, byte[]... keys) {
return jedis.sdiffstore(dstkey, keys);
}
@Override
public Set sinter(byte[]... keys) {
return jedis.sinter(keys);
}
@Override
public Long sinterstore(byte[] dstkey, byte[]... keys) {
return jedis.sinterstore(dstkey, keys);
}
@Override
public Long smove(byte[] srckey, byte[] dstkey, byte[] member) {
return jedis.smove(srckey, dstkey, member);
}
@Override
public Long sort(byte[] key, SortingParams sortingParameters, byte[] dstkey) {
return jedis.sort(key, sortingParameters, dstkey);
}
@Override
public Long sort(byte[] key, byte[] dstkey) {
return jedis.sort(key, dstkey);
}
@Override
public Set sunion(byte[]... keys) {
return jedis.sunion(keys);
}
@Override
public Long sunionstore(byte[] dstkey, byte[]... keys) {
return jedis.sunionstore(dstkey, keys);
}
@Override
public Long zinterstore(byte[] dstkey, byte[]... sets) {
return jedis.zinterstore(dstkey, sets);
}
@Override
public Long zinterstore(byte[] dstkey, ZParams params, byte[]... sets) {
return jedis.zinterstore(dstkey, params, sets);
}
@Override
public Long zunionstore(byte[] dstkey, byte[]... sets) {
return jedis.zunionstore(dstkey, sets);
}
@Override
public Long zunionstore(byte[] dstkey, ZParams params, byte[]... sets) {
return jedis.zunionstore(dstkey, params, sets);
}
@Override
public byte[] brpoplpush(byte[] source, byte[] destination, int timeout) {
return jedis.brpoplpush(source, destination, timeout);
}
@Override
public Long publish(byte[] channel, byte[] message) {
return jedis.publish(channel, message);
}
@Override
public void subscribe(BinaryJedisPubSub jedisPubSub, byte[]... channels) {
jedis.subscribe(jedisPubSub, channels);
}
@Override
public void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns) {
jedis.psubscribe(jedisPubSub, patterns);
}
@Override
public Long bitop(BitOP op, byte[] destKey, byte[]... srcKeys) {
return jedis.bitop(op, destKey, srcKeys);
}
@Override
public String pfmerge(byte[] destkey, byte[]... sourcekeys) {
return jedis.pfmerge(destkey, sourcekeys);
}
@Override
public Long pfcount(byte[]... keys) {
return jedis.pfcount(keys);
}
@Override
@Deprecated
public String ping() {
return jedis.ping();
}
@Override
@Deprecated
public String quit() {
return jedis.quit();
}
@Override
@Deprecated
public String flushDB() {
return jedis.flushDB();
}
@Override
@Deprecated
public Long dbSize() {
return jedis.dbSize();
}
@Override
@Deprecated
public String select(int index) {
return jedis.select(index);
}
@Override
@Deprecated
public String flushAll() {
return jedis.flushAll();
}
@Override
@Deprecated
public String auth(String password) {
return jedis.auth(password);
}
@Override
@Deprecated
public String save() {
return jedis.save();
}
@Override
@Deprecated
public String bgsave() {
return jedis.bgsave();
}
@Override
@Deprecated
public String bgrewriteaof() {
return jedis.bgrewriteaof();
}
@Override
@Deprecated
public Long lastsave() {
return jedis.lastsave();
}
@Override
@Deprecated
public String shutdown() {
return jedis.shutdown();
}
@Override
@Deprecated
public String info() {
return jedis.info();
}
@Override
@Deprecated
public String info(String section) {
return jedis.info(section);
}
@Override
@Deprecated
public String slaveof(String host, int port) {
return jedis.slaveof(host, port);
}
@Override
@Deprecated
public String slaveofNoOne() {
return jedis.slaveofNoOne();
}
@Override
@Deprecated
public Long getDB() {
return jedis.getDB();
}
@Override
@Deprecated
public String debug(DebugParams params) {
return jedis.debug(params);
}
@Override
@Deprecated
public String configResetStat() {
return jedis.configResetStat();
}
@Override
@Deprecated
public Long waitReplicas(int replicas, long timeout) {
return jedis.waitReplicas(replicas, timeout);
}
@Override
public Long geoadd(byte[] key, double longitude, double latitude, byte[] member) {
return jedis.geoadd(key, longitude, latitude, member);
}
@Override
public Long geoadd(byte[] key, Map memberCoordinateMap) {
return jedis.geoadd(key, memberCoordinateMap);
}
@Override
public Double geodist(byte[] key, byte[] member1, byte[] member2) {
return jedis.geodist(key, member1, member2);
}
@Override
public Double geodist(byte[] key, byte[] member1, byte[] member2, GeoUnit unit) {
return jedis.geodist(key, member1, member2, unit);
}
@Override
public List geohash(byte[] key, byte[]... members) {
return jedis.geohash(key, members);
}
@Override
public List geopos(byte[] key, byte[]... members) {
return jedis.geopos(key, members);
}
@Override
public List georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit) {
return jedis.georadius(key, longitude, latitude, radius, unit);
}
@Override
public List georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param) {
return jedis.georadius(key, longitude, latitude, radius, unit, param);
}
@Override
public List georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit) {
return jedis.georadiusByMember(key, member, radius, unit);
}
@Override
public List georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param) {
return jedis.georadiusByMember(key, member, radius, unit, param);
}
@Override
public ScanResult scan(byte[] cursor, ScanParams params) {
// return jedis.scan(cursor, params);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult> hscan(byte[] key, byte[] cursor) {
// return jedis.hscan(key, cursor);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult> hscan(byte[] key, byte[] cursor, ScanParams params) {
// return jedis.hscan(key, cursor, params);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult sscan(byte[] key, byte[] cursor) {
// return jedis.sscan(key, cursor);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult sscan(byte[] key, byte[] cursor, ScanParams params) {
// return jedis.sscan(key, cursor, params);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult zscan(byte[] key, byte[] cursor) {
// return jedis.zscan(key, cursor);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public ScanResult zscan(byte[] key, byte[] cursor, ScanParams params) {
// return jedis.zscan(key, cursor, params);
throw new UnsupportedOperationException("jedis 2.8 not support");
}
@Override
public List blpop(byte[]... args) {
throw new UnsupportedOperationException("cluster not support blpop");
}
@Override
public List brpop(byte[]... args) {
throw new UnsupportedOperationException("cluster not support binery brpop");
}
@Override
public Set keys(byte[] pattern) {
throw new UnsupportedOperationException("cluster not support byte keys");
}
@Override
public String watch(byte[]... keys) {
throw new UnsupportedOperationException("cluster not support watch byte keys");
}
@Override
public String unwatch() {
throw new UnsupportedOperationException("cluster not support unwatch ");
}
@Override
public byte[] randomBinaryKey() {
throw new UnsupportedOperationException("cluster not support randomBinaryKey ");
}
}