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.
org.redisson.client.protocol.RedisCommands Maven / Gradle / Ivy
Go to download
Easy Redis Java client and Real-Time Data Platform. Valkey compatible. Sync/Async/RxJava3/Reactive API. Client side caching. Over 50 Redis based Java objects and services: JCache API, Apache Tomcat, Hibernate, Spring, Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Scheduler, RPC
/**
* Copyright (c) 2013-2021 Nikita Koksharov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.redisson.client.protocol;
import org.redisson.api.FastAutoClaimResult;
import org.redisson.api.RType;
import org.redisson.api.StreamInfo;
import org.redisson.api.StreamMessageId;
import org.redisson.client.codec.StringCodec;
import org.redisson.client.protocol.convertor.*;
import org.redisson.client.protocol.decoder.*;
import org.redisson.client.protocol.pubsub.PubSubStatusDecoder;
import org.redisson.cluster.ClusterNodeInfo;
import java.net.InetSocketAddress;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
/**
*
* @author Nikita Koksharov
*
*/
public interface RedisCommands {
RedisStrictCommand DEBUG = new RedisStrictCommand("DEBUG");
RedisStrictCommand GEOADD = new RedisStrictCommand("GEOADD");
RedisStrictCommand GEOADD_BOOLEAN = new RedisStrictCommand<>("GEOADD", new BooleanReplayConvertor());
RedisCommand GEODIST = new RedisCommand("GEODIST", new DoubleReplayConvertor());
RedisCommand> GEORADIUS_RO = new RedisCommand>("GEORADIUS_RO", new ObjectListReplayDecoder());
RedisCommand> GEORADIUSBYMEMBER_RO = new RedisCommand>("GEORADIUSBYMEMBER_RO", new ObjectListReplayDecoder());
RedisCommand> GEOSEARCH = new RedisCommand<>("GEOSEARCH", new ObjectListReplayDecoder<>());
RedisCommand GEORADIUS_STORE = new RedisCommand("GEORADIUS", new Long2MultiDecoder());
RedisCommand GEORADIUSBYMEMBER_STORE = new RedisCommand("GEORADIUSBYMEMBER", new Long2MultiDecoder());
RedisCommand GEOSEARCHSTORE_STORE = new RedisCommand("GEOSEARCHSTORE", new Long2MultiDecoder());
RedisStrictCommand KEYSLOT = new RedisStrictCommand("CLUSTER", "KEYSLOT", new IntegerReplayConvertor());
RedisStrictCommand TYPE = new RedisStrictCommand("TYPE", new TypeConvertor());
RedisStrictCommand BITFIELD_LONG = new RedisStrictCommand<>("BITFIELD", null,
new ListFirstObjectDecoder(), new LongReplayConvertor());
RedisStrictCommand BITFIELD_INT = new RedisStrictCommand<>("BITFIELD", null,
new ListFirstObjectDecoder(), new IntegerReplayConvertor(0));
RedisStrictCommand BITFIELD_BYTE = new RedisStrictCommand<>("BITFIELD", null,
new ListFirstObjectDecoder(), new ByteReplayConvertor());
RedisStrictCommand BITFIELD_SHORT = new RedisStrictCommand<>("BITFIELD", null,
new ListFirstObjectDecoder(), new ShortReplayConvertor());
RedisStrictCommand GETBIT = new RedisStrictCommand("GETBIT", new BooleanReplayConvertor());
RedisStrictCommand BITS_SIZE = new RedisStrictCommand("STRLEN", new BitsSizeReplayConvertor());
RedisStrictCommand STRLEN = new RedisStrictCommand("STRLEN");
RedisStrictCommand BITCOUNT = new RedisStrictCommand("BITCOUNT");
RedisStrictCommand BITPOS = new RedisStrictCommand("BITPOS", new IntegerReplayConvertor());
RedisStrictCommand SETBIT_VOID = new RedisStrictCommand("SETBIT", new VoidReplayConvertor());
RedisStrictCommand SETBIT = new RedisStrictCommand("SETBIT", new BooleanReplayConvertor());
RedisStrictCommand BITOP = new RedisStrictCommand("BITOP", new VoidReplayConvertor());
RedisStrictCommand WAIT = new RedisStrictCommand("WAIT", new IntegerReplayConvertor());
RedisStrictCommand CLIENT_REPLY = new RedisStrictCommand("CLIENT", "REPLY", new VoidReplayConvertor());
RedisStrictCommand ASKING = new RedisStrictCommand("ASKING", new VoidReplayConvertor());
RedisStrictCommand READONLY = new RedisStrictCommand("READONLY", new VoidReplayConvertor());
RedisCommand> ZRANDMEMBER_ENTRIES = new RedisCommand<>("ZRANDMEMBER", new ScoredSortedSetRandomMapDecoder());
RedisCommand> ZRANDMEMBER = new RedisCommand<>("ZRANDMEMBER", new ObjectSetReplayDecoder<>());
RedisCommand ZRANDMEMBER_SINGLE = new RedisCommand<>("ZRANDMEMBER");
RedisStrictCommand> ZDIFF = new RedisStrictCommand<>("ZDIFF", new ObjectListReplayDecoder<>());
RedisCommand> ZUNION = new RedisCommand<>("ZUNION", new ObjectListReplayDecoder<>());
RedisCommand> ZINTER = new RedisCommand<>("ZINTER", new ObjectListReplayDecoder<>());
RedisStrictCommand ZDIFFSTORE_INT = new RedisStrictCommand("ZDIFFSTORE", new IntegerReplayConvertor());
RedisStrictCommand ZUNIONSTORE_INT = new RedisStrictCommand("ZUNIONSTORE", new IntegerReplayConvertor());
RedisStrictCommand ZINTERSTORE_INT = new RedisStrictCommand("ZINTERSTORE", new IntegerReplayConvertor());
RedisCommand ZADD_BOOL = new RedisCommand("ZADD", new BooleanAmountReplayConvertor());
RedisCommand ZADD_NX_BOOL = new RedisCommand("ZADD", new BooleanAmountReplayConvertor());
RedisCommand ZADD_BOOL_RAW = new RedisCommand("ZADD", new BooleanAmountReplayConvertor());
RedisCommand ZADD_RAW = new RedisCommand("ZADD");
RedisStrictCommand ZADD_INT = new RedisStrictCommand("ZADD", new IntegerReplayConvertor());
RedisCommand ZADD = new RedisCommand("ZADD");
RedisStrictCommand ZREM_LONG = new RedisStrictCommand("ZREM");
RedisCommand ZREM = new RedisCommand("ZREM", new BooleanAmountReplayConvertor());
RedisStrictCommand ZCARD_INT = new RedisStrictCommand("ZCARD", new IntegerReplayConvertor());
RedisStrictCommand ZCARD = new RedisStrictCommand("ZCARD");
RedisStrictCommand ZCOUNT = new RedisStrictCommand("ZCOUNT", new IntegerReplayConvertor());
RedisStrictCommand ZLEXCOUNT = new RedisStrictCommand("ZLEXCOUNT", new IntegerReplayConvertor());
RedisCommand ZSCORE_CONTAINS = new RedisCommand("ZSCORE", new BooleanNotNullReplayConvertor());
RedisStrictCommand ZSCORE = new RedisStrictCommand("ZSCORE", new DoubleReplayConvertor());
RedisStrictCommand ZRANK = new RedisStrictCommand("ZRANK");
RedisCommand ZRANK_INT = new RedisCommand("ZRANK", new IntegerReplayConvertor());
RedisStrictCommand ZREVRANK = new RedisStrictCommand("ZREVRANK");
RedisCommand ZREVRANK_INT = new RedisCommand("ZREVRANK", new IntegerReplayConvertor());
RedisCommand ZRANGE_SINGLE = new RedisCommand("ZRANGE", new ListFirstObjectDecoder());
RedisStrictCommand ZRANGE_SINGLE_SCORE = new RedisStrictCommand("ZRANGE", new ObjectFirstScoreReplayDecoder());
RedisCommand> ZRANGE = new RedisCommand>("ZRANGE", new ObjectListReplayDecoder());
RedisCommand ZRANGESTORE = new RedisCommand<>("ZRANGESTORE", new IntegerReplayConvertor());
RedisCommand> ZPOPMIN = new RedisCommand>("ZPOPMIN", new ObjectListReplayDecoder());
RedisCommand> ZPOPMAX = new RedisCommand>("ZPOPMAX", new ObjectListReplayDecoder());
RedisStrictCommand ZREMRANGEBYRANK = new RedisStrictCommand("ZREMRANGEBYRANK", new IntegerReplayConvertor());
RedisStrictCommand ZREMRANGEBYSCORE = new RedisStrictCommand("ZREMRANGEBYSCORE", new IntegerReplayConvertor());
RedisStrictCommand ZREMRANGEBYLEX = new RedisStrictCommand("ZREMRANGEBYLEX", new IntegerReplayConvertor());
RedisCommand> ZRANGEBYLEX = new RedisCommand>("ZRANGEBYLEX", new ObjectListReplayDecoder());
RedisCommand> ZREVRANGEBYLEX = new RedisCommand>("ZREVRANGEBYLEX", new ObjectListReplayDecoder());
RedisCommand> ZRANGEBYSCORE = new RedisCommand>("ZRANGEBYSCORE", new ObjectSetReplayDecoder());
RedisCommand> ZRANGEBYSCORE_LIST = new RedisCommand>("ZRANGEBYSCORE", new ObjectListReplayDecoder());
RedisCommand> ZREVRANGE = new RedisCommand>("ZREVRANGE", new ObjectListReplayDecoder());
RedisCommand> ZREVRANGEBYSCORE = new RedisCommand>("ZREVRANGEBYSCORE", new ObjectSetReplayDecoder());
RedisCommand>> ZREVRANGE_ENTRY = new RedisCommand>>("ZREVRANGE", new ScoredSortedSetReplayDecoder());
RedisCommand>> ZREVRANGEBYSCORE_ENTRY = new RedisCommand>>("ZREVRANGEBYSCORE", new ScoredSortedSetReplayDecoder());
RedisCommand>> ZRANGE_ENTRY = new RedisCommand>>("ZRANGE", new ScoredSortedSetReplayDecoder());
RedisCommand>> ZRANGEBYSCORE_ENTRY = new RedisCommand>>("ZRANGEBYSCORE", new ScoredSortedSetReplayDecoder());
RedisCommand> ZSCAN = new RedisCommand>("ZSCAN", new ListMultiDecoder2(new ScoredSortedSetScanReplayDecoder(), new ScoredSortedSetScanDecoder()));
RedisStrictCommand ZINCRBY = new RedisStrictCommand("ZINCRBY", new DoubleNullSafeReplayConvertor());
RedisCommand> SCAN = new RedisCommand>("SCAN", new ListMultiDecoder2(new ListScanResultReplayDecoder(), new ObjectListReplayDecoder()));
RedisStrictCommand RANDOM_KEY = new RedisStrictCommand("RANDOMKEY");
RedisCommand PING = new RedisCommand("PING");
RedisStrictCommand PING_BOOL = new RedisStrictCommand("PING", new BooleanNotNullReplayConvertor());
RedisStrictCommand SHUTDOWN = new RedisStrictCommand("SHUTDOWN", new VoidReplayConvertor());
RedisStrictCommand UNWATCH = new RedisStrictCommand("UNWATCH", new VoidReplayConvertor());
RedisStrictCommand WATCH = new RedisStrictCommand("WATCH", new VoidReplayConvertor());
RedisStrictCommand MULTI = new RedisStrictCommand("MULTI", new VoidReplayConvertor());
RedisStrictCommand DISCARD = new RedisStrictCommand("DISCARD", new VoidReplayConvertor());
RedisCommand> EXEC = new RedisCommand>("EXEC", new ObjectListReplayDecoder());
RedisCommand SADD_BOOL = new RedisCommand("SADD", new BooleanAmountReplayConvertor());
RedisCommand SADD = new RedisCommand("SADD", new IntegerReplayConvertor());
RedisCommand> SPOP = new RedisCommand>("SPOP", new ObjectSetReplayDecoder());
RedisCommand SPOP_SINGLE = new RedisCommand("SPOP");
RedisCommand SADD_SINGLE = new RedisCommand("SADD", new BooleanReplayConvertor());
RedisCommand SREM_SINGLE = new RedisCommand("SREM", new BooleanAmountReplayConvertor());
RedisCommand SMOVE = new RedisCommand("SMOVE", new BooleanReplayConvertor());
RedisCommand> SMEMBERS = new RedisCommand>("SMEMBERS", new ObjectSetReplayDecoder());
RedisCommand> SRANDMEMBER = new RedisCommand>("SRANDMEMBER", new ObjectSetReplayDecoder());
RedisCommand SRANDMEMBER_SINGLE = new RedisCommand("SRANDMEMBER");
RedisCommand> SSCAN = new RedisCommand>("SSCAN", new ListMultiDecoder2(new ListScanResultReplayDecoder(), new ObjectListReplayDecoder()));
RedisCommand> EVAL_SSCAN = new RedisCommand>("EVAL", new ListMultiDecoder2(new ListScanResultReplayDecoder(), new ObjectListReplayDecoder()));
RedisCommand> EVAL_ZSCAN = new RedisCommand>("EVAL", new ListMultiDecoder2(new ListScanResultReplayDecoder(), new ObjectListReplayDecoder()));
RedisCommand SISMEMBER = new RedisCommand("SISMEMBER", new BooleanReplayConvertor());
RedisStrictCommand SCARD_INT = new RedisStrictCommand("SCARD", new IntegerReplayConvertor());
RedisStrictCommand SCARD = new RedisStrictCommand("SCARD");
RedisStrictCommand SUNIONSTORE_INT = new RedisStrictCommand("SUNIONSTORE", new IntegerReplayConvertor());
RedisStrictCommand SDIFFSTORE_INT = new RedisStrictCommand("SDIFFSTORE", new IntegerReplayConvertor());
RedisStrictCommand SINTERSTORE_INT = new RedisStrictCommand("SINTERSTORE", new IntegerReplayConvertor());
RedisStrictCommand SUNIONSTORE = new RedisStrictCommand("SUNIONSTORE");
RedisStrictCommand SINTERSTORE = new RedisStrictCommand("SINTERSTORE");
RedisStrictCommand SDIFFSTORE = new RedisStrictCommand("SDIFFSTORE");
RedisCommand> SUNION = new RedisCommand>("SUNION", new ObjectSetReplayDecoder());
RedisCommand> SDIFF = new RedisCommand>("SDIFF", new ObjectSetReplayDecoder());
RedisCommand> SINTER = new RedisCommand>("SINTER", new ObjectSetReplayDecoder());
RedisStrictCommand LPOS = new RedisStrictCommand<>("LPOS");
RedisCommand LSET = new RedisCommand("LSET", new VoidReplayConvertor());
RedisCommand LPOP = new RedisCommand("LPOP");
RedisCommand LREM_SINGLE = new RedisCommand("LREM", new BooleanReplayConvertor());
RedisCommand LINDEX = new RedisCommand("LINDEX");
RedisCommand LMOVE = new RedisCommand("LMOVE");
RedisCommand LINSERT_INT = new RedisCommand("LINSERT", new IntegerReplayConvertor());
RedisStrictCommand LLEN_INT = new RedisStrictCommand("LLEN", new IntegerReplayConvertor());
RedisStrictCommand