|
|
@ -24,7 +24,6 @@ import java.util.Set;
|
|
|
|
|
|
|
|
|
|
|
|
import org.redisson.api.RType;
|
|
|
|
import org.redisson.api.RType;
|
|
|
|
import org.redisson.client.protocol.RedisCommand.ValueType;
|
|
|
|
import org.redisson.client.protocol.RedisCommand.ValueType;
|
|
|
|
import org.redisson.client.protocol.convertor.BitSetReplayConvertor;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.convertor.BitsSizeReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.BitsSizeReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.BooleanAmountReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.BooleanAmountReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.BooleanNotNullReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.BooleanNotNullReplayConvertor;
|
|
|
@ -36,13 +35,14 @@ import org.redisson.client.protocol.convertor.DoubleNullSafeReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.DoubleReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.DoubleReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.IntegerReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.IntegerReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.KeyValueConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.KeyValueConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.TimeObjectDecoder;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.convertor.LongReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.LongReplayConvertor;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.convertor.TimeObjectDecoder;
|
|
|
|
import org.redisson.client.protocol.convertor.TrueReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.TrueReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.TypeConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.TypeConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.VoidReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.convertor.VoidReplayConvertor;
|
|
|
|
import org.redisson.client.protocol.decoder.ClusterNodesDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ClusterNodesDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.KeyValueObjectDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.KeyValueObjectDecoder;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.decoder.ListFirstObjectDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ListMultiDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ListMultiDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ListResultReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ListResultReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ListScanResult;
|
|
|
|
import org.redisson.client.protocol.decoder.ListScanResult;
|
|
|
@ -51,12 +51,12 @@ import org.redisson.client.protocol.decoder.Long2MultiDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.LongMultiDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.LongMultiDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.MapScanResult;
|
|
|
|
import org.redisson.client.protocol.decoder.MapScanResult;
|
|
|
|
import org.redisson.client.protocol.decoder.MapScanResultReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.MapScanResultReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectFirstResultReplayDecoder;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectFirstScoreReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectFirstScoreReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectListReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectListReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectMapEntryReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectMapEntryReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectMapReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectMapReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectSetReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ObjectSetReplayDecoder;
|
|
|
|
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetPolledObjectDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetScanDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetScanDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetScanReplayDecoder;
|
|
|
|
import org.redisson.client.protocol.decoder.ScoredSortedSetScanReplayDecoder;
|
|
|
@ -93,8 +93,6 @@ public interface RedisCommands {
|
|
|
|
RedisStrictCommand<Integer> BITPOS = new RedisStrictCommand<Integer>("BITPOS", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> BITPOS = new RedisStrictCommand<Integer>("BITPOS", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Void> SETBIT_VOID = new RedisStrictCommand<Void>("SETBIT", new VoidReplayConvertor());
|
|
|
|
RedisStrictCommand<Void> SETBIT_VOID = new RedisStrictCommand<Void>("SETBIT", new VoidReplayConvertor());
|
|
|
|
RedisStrictCommand<Boolean> SETBIT = new RedisStrictCommand<Boolean>("SETBIT", new BooleanReplayConvertor());
|
|
|
|
RedisStrictCommand<Boolean> SETBIT = new RedisStrictCommand<Boolean>("SETBIT", new BooleanReplayConvertor());
|
|
|
|
RedisStrictCommand<Boolean> SETBIT_TRUE = new RedisStrictCommand<Boolean>("SETBIT", new BitSetReplayConvertor(0));
|
|
|
|
|
|
|
|
RedisStrictCommand<Boolean> SETBIT_FALSE = new RedisStrictCommand<Boolean>("SETBIT", new BitSetReplayConvertor(1));
|
|
|
|
|
|
|
|
RedisStrictCommand<Void> BITOP = new RedisStrictCommand<Void>("BITOP", new VoidReplayConvertor());
|
|
|
|
RedisStrictCommand<Void> BITOP = new RedisStrictCommand<Void>("BITOP", new VoidReplayConvertor());
|
|
|
|
|
|
|
|
|
|
|
|
RedisStrictCommand<Integer> WAIT = new RedisStrictCommand<Integer>("WAIT", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> WAIT = new RedisStrictCommand<Integer>("WAIT", new IntegerReplayConvertor());
|
|
|
@ -119,9 +117,11 @@ public interface RedisCommands {
|
|
|
|
RedisStrictCommand<Double> ZSCORE = new RedisStrictCommand<Double>("ZSCORE", new DoubleReplayConvertor());
|
|
|
|
RedisStrictCommand<Double> ZSCORE = new RedisStrictCommand<Double>("ZSCORE", new DoubleReplayConvertor());
|
|
|
|
RedisCommand<Integer> ZRANK_INT = new RedisCommand<Integer>("ZRANK", new IntegerReplayConvertor());
|
|
|
|
RedisCommand<Integer> ZRANK_INT = new RedisCommand<Integer>("ZRANK", new IntegerReplayConvertor());
|
|
|
|
RedisCommand<Integer> ZREVRANK_INT = new RedisCommand<Integer>("ZREVRANK", new IntegerReplayConvertor());
|
|
|
|
RedisCommand<Integer> ZREVRANK_INT = new RedisCommand<Integer>("ZREVRANK", new IntegerReplayConvertor());
|
|
|
|
RedisCommand<Object> ZRANGE_SINGLE = new RedisCommand<Object>("ZRANGE", new ObjectFirstResultReplayDecoder<Object>());
|
|
|
|
RedisCommand<Object> ZRANGE_SINGLE = new RedisCommand<Object>("ZRANGE", new ListFirstObjectDecoder());
|
|
|
|
RedisStrictCommand<Double> ZRANGE_SINGLE_SCORE = new RedisStrictCommand<Double>("ZRANGE", new ObjectFirstScoreReplayDecoder());
|
|
|
|
RedisStrictCommand<Double> ZRANGE_SINGLE_SCORE = new RedisStrictCommand<Double>("ZRANGE", new ObjectFirstScoreReplayDecoder());
|
|
|
|
RedisCommand<List<Object>> ZRANGE = new RedisCommand<List<Object>>("ZRANGE", new ObjectListReplayDecoder<Object>());
|
|
|
|
RedisCommand<List<Object>> ZRANGE = new RedisCommand<List<Object>>("ZRANGE", new ObjectListReplayDecoder<Object>());
|
|
|
|
|
|
|
|
RedisCommand<List<Object>> ZPOPMIN = new RedisCommand<List<Object>>("ZPOPMIN", new ObjectListReplayDecoder<Object>());
|
|
|
|
|
|
|
|
RedisCommand<List<Object>> ZPOPMAX = new RedisCommand<List<Object>>("ZPOPMAX", new ObjectListReplayDecoder<Object>());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYRANK = new RedisStrictCommand<Integer>("ZREMRANGEBYRANK", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYRANK = new RedisStrictCommand<Integer>("ZREMRANGEBYRANK", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYSCORE = new RedisStrictCommand<Integer>("ZREMRANGEBYSCORE", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYSCORE = new RedisStrictCommand<Integer>("ZREMRANGEBYSCORE", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYLEX = new RedisStrictCommand<Integer>("ZREMRANGEBYLEX", new IntegerReplayConvertor());
|
|
|
|
RedisStrictCommand<Integer> ZREMRANGEBYLEX = new RedisStrictCommand<Integer>("ZREMRANGEBYLEX", new IntegerReplayConvertor());
|
|
|
@ -191,9 +191,11 @@ public interface RedisCommands {
|
|
|
|
RedisCommand<Object> BRPOPLPUSH = new RedisCommand<Object>("BRPOPLPUSH");
|
|
|
|
RedisCommand<Object> BRPOPLPUSH = new RedisCommand<Object>("BRPOPLPUSH");
|
|
|
|
RedisCommand<Object> BLPOP_VALUE = new RedisCommand<Object>("BLPOP", new KeyValueObjectDecoder(), new KeyValueConvertor());
|
|
|
|
RedisCommand<Object> BLPOP_VALUE = new RedisCommand<Object>("BLPOP", new KeyValueObjectDecoder(), new KeyValueConvertor());
|
|
|
|
RedisCommand<Object> BRPOP_VALUE = new RedisCommand<Object>("BRPOP", new KeyValueObjectDecoder(), new KeyValueConvertor());
|
|
|
|
RedisCommand<Object> BRPOP_VALUE = new RedisCommand<Object>("BRPOP", new KeyValueObjectDecoder(), new KeyValueConvertor());
|
|
|
|
|
|
|
|
RedisCommand<Object> BZPOPMIN_VALUE = new RedisCommand<Object>("BZPOPMIN", new ScoredSortedSetPolledObjectDecoder());
|
|
|
|
|
|
|
|
RedisCommand<Object> BZPOPMAX_VALUE = new RedisCommand<Object>("BZPOPMAX", new ScoredSortedSetPolledObjectDecoder());
|
|
|
|
|
|
|
|
|
|
|
|
Set<String> BLOCKING_COMMANDS = new HashSet<String>(
|
|
|
|
Set<String> BLOCKING_COMMANDS = new HashSet<String>(
|
|
|
|
Arrays.asList(BLPOP_VALUE.getName(), BRPOP_VALUE.getName(), BRPOPLPUSH.getName()));
|
|
|
|
Arrays.asList(BLPOP_VALUE.getName(), BRPOP_VALUE.getName(), BRPOPLPUSH.getName(), BZPOPMIN_VALUE.getName(), BZPOPMAX_VALUE.getName()));
|
|
|
|
|
|
|
|
|
|
|
|
RedisCommand<Boolean> PFADD = new RedisCommand<Boolean>("PFADD", new BooleanReplayConvertor());
|
|
|
|
RedisCommand<Boolean> PFADD = new RedisCommand<Boolean>("PFADD", new BooleanReplayConvertor());
|
|
|
|
RedisStrictCommand<Long> PFCOUNT = new RedisStrictCommand<Long>("PFCOUNT");
|
|
|
|
RedisStrictCommand<Long> PFCOUNT = new RedisStrictCommand<Long>("PFCOUNT");
|
|
|
@ -228,6 +230,7 @@ public interface RedisCommands {
|
|
|
|
RedisStrictCommand<Long> EVAL_LONG = new RedisStrictCommand<Long>("EVAL");
|
|
|
|
RedisStrictCommand<Long> EVAL_LONG = new RedisStrictCommand<Long>("EVAL");
|
|
|
|
RedisStrictCommand<Long> EVAL_LONG_SAFE = new RedisStrictCommand<Long>("EVAL", new LongReplayConvertor());
|
|
|
|
RedisStrictCommand<Long> EVAL_LONG_SAFE = new RedisStrictCommand<Long>("EVAL", new LongReplayConvertor());
|
|
|
|
RedisStrictCommand<Void> EVAL_VOID = new RedisStrictCommand<Void>("EVAL", new VoidReplayConvertor());
|
|
|
|
RedisStrictCommand<Void> EVAL_VOID = new RedisStrictCommand<Void>("EVAL", new VoidReplayConvertor());
|
|
|
|
|
|
|
|
RedisCommand<Object> EVAL_FIRST_LIST = new RedisCommand<Object>("EVAL", new ListFirstObjectDecoder());
|
|
|
|
RedisCommand<List<Object>> EVAL_LIST = new RedisCommand<List<Object>>("EVAL", new ObjectListReplayDecoder<Object>());
|
|
|
|
RedisCommand<List<Object>> EVAL_LIST = new RedisCommand<List<Object>>("EVAL", new ObjectListReplayDecoder<Object>());
|
|
|
|
RedisCommand<Set<Object>> EVAL_SET = new RedisCommand<Set<Object>>("EVAL", new ObjectSetReplayDecoder<Object>());
|
|
|
|
RedisCommand<Set<Object>> EVAL_SET = new RedisCommand<Set<Object>>("EVAL", new ObjectSetReplayDecoder<Object>());
|
|
|
|
RedisCommand<Object> EVAL_OBJECT = new RedisCommand<Object>("EVAL");
|
|
|
|
RedisCommand<Object> EVAL_OBJECT = new RedisCommand<Object>("EVAL");
|
|
|
|