Package redis.clients.jedis
Class JedisCluster
- java.lang.Object
-
- redis.clients.jedis.BinaryJedisCluster
-
- redis.clients.jedis.JedisCluster
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BinaryJedisClusterCommands,JedisClusterBinaryScriptingCommands,JedisClusterCommands,JedisClusterScriptingCommands,MultiKeyBinaryJedisClusterCommands,MultiKeyJedisClusterCommands
public class JedisCluster extends BinaryJedisCluster implements JedisClusterCommands, MultiKeyJedisClusterCommands, JedisClusterScriptingCommands
-
-
Field Summary
-
Fields inherited from class redis.clients.jedis.BinaryJedisCluster
connectionHandler, DEFAULT_MAX_ATTEMPTS, DEFAULT_TIMEOUT, HASHSLOTS, maxAttempts
-
-
Constructor Summary
Constructors Constructor Description JedisCluster(Set<HostAndPort> nodes)JedisCluster(Set<HostAndPort> nodes, int timeout)JedisCluster(Set<HostAndPort> nodes, int timeout, int maxAttempts)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> nodes, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node)JedisCluster(HostAndPort node, int timeout)JedisCluster(HostAndPort node, int timeout, int maxAttempts)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)JedisCluster(HostAndPort node, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longappend(String key, String value)Longbitcount(String key)Longbitcount(String key, long start, long end)List<Long>bitfield(String key, String... arguments)Executes BITFIELD Redis commandList<Long>bitfieldReadonly(String key, String... arguments)Longbitop(BitOP op, String destKey, String... srcKeys)List<String>blpop(int timeout, String key)List<String>blpop(int timeout, String... keys)List<String>brpop(int timeout, String key)List<String>brpop(int timeout, String... keys)Stringbrpoplpush(String source, String destination, int timeout)Longdecr(String key)LongdecrBy(String key, long decrement)Longdel(String key)Longdel(String... keys)byte[]dump(String key)Stringecho(String string)Objecteval(String script, int keyCount, String... params)Objecteval(String script, String sampleKey)Objecteval(String script, List<String> keys, List<String> args)Objectevalsha(String sha1, int keyCount, String... params)Objectevalsha(String sha1, String sampleKey)Objectevalsha(String sha1, List<String> keys, List<String> args)Booleanexists(String key)Longexists(String... keys)Longexpire(String key, int seconds)LongexpireAt(String key, long unixTime)Longgeoadd(String key, double longitude, double latitude, String member)Longgeoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)Doublegeodist(String key, String member1, String member2)Doublegeodist(String key, String member1, String member2, GeoUnit unit)List<String>geohash(String key, String... members)List<GeoCoordinate>geopos(String key, String... members)List<GeoRadiusResponse>georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)List<GeoRadiusResponse>georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)List<GeoRadiusResponse>georadiusByMember(String key, String member, double radius, GeoUnit unit)List<GeoRadiusResponse>georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)List<GeoRadiusResponse>georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)List<GeoRadiusResponse>georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)LonggeoradiusByMemberStore(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)List<GeoRadiusResponse>georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)List<GeoRadiusResponse>georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)LonggeoradiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)Stringget(String key)Booleangetbit(String key, long offset)Stringgetrange(String key, long startOffset, long endOffset)StringgetSet(String key, String value)Longhdel(String key, String... field)Booleanhexists(String key, String field)Stringhget(String key, String field)Map<String,String>hgetAll(String key)LonghincrBy(String key, String field, long value)DoublehincrByFloat(String key, String field, double value)Set<String>hkeys(String key)Longhlen(String key)List<String>hmget(String key, String... fields)Stringhmset(String key, Map<String,String> hash)ScanResult<Map.Entry<String,String>>hscan(String key, String cursor)Longhset(String key, String field, String value)Longhset(String key, Map<String,String> hash)Longhsetnx(String key, String field, String value)Longhstrlen(String key, String field)Used for HSTRLEN Redis commandList<String>hvals(String key)Longincr(String key)LongincrBy(String key, long increment)DoubleincrByFloat(String key, double increment)Set<String>keys(String pattern)Stringlindex(String key, long index)Longlinsert(String key, ListPosition where, String pivot, String value)Longllen(String key)Stringlpop(String key)List<String>lpop(String key, int count)Longlpos(String key, String element)Longlpos(String key, String element, LPosParams params)List<Long>lpos(String key, String element, LPosParams params, long count)Longlpush(String key, String... string)Longlpushx(String key, String... string)List<String>lrange(String key, long start, long stop)Longlrem(String key, long count, String value)Stringlset(String key, long index, String value)Stringltrim(String key, long start, long stop)LongmemoryUsage(String key)MEMORY USAGE keyLongmemoryUsage(String key, int samples)MEMORY USAGE key [SAMPLES count]List<String>mget(String... keys)Stringmset(String... keysvalues)Longmsetnx(String... keysvalues)Longpersist(String key)Longpexpire(String key, long milliseconds)LongpexpireAt(String key, long millisecondsTimestamp)Longpfadd(String key, String... elements)longpfcount(String key)longpfcount(String... keys)Stringpfmerge(String destkey, String... sourcekeys)Stringpsetex(String key, long milliseconds, String value)voidpsubscribe(JedisPubSub jedisPubSub, String... patterns)Longpttl(String key)Longpublish(String channel, String message)Stringrename(String oldkey, String newkey)Longrenamenx(String oldkey, String newkey)Stringrestore(String key, int ttl, byte[] serializedValue)Stringrpop(String key)List<String>rpop(String key, int count)Stringrpoplpush(String srckey, String dstkey)Longrpush(String key, String... string)Longrpushx(String key, String... string)Longsadd(String key, String... member)ScanResult<String>scan(String cursor, ScanParams params)Longscard(String key)BooleanscriptExists(String sha1, String sampleKey)List<Boolean>scriptExists(String sampleKey, String... sha1)StringscriptFlush(String sampleKey)StringscriptKill(String sampleKey)StringscriptLoad(String script, String sampleKey)Set<String>sdiff(String... keys)Longsdiffstore(String dstkey, String... keys)ObjectsendBlockingCommand(String sampleKey, ProtocolCommand cmd, String... args)ObjectsendCommand(String sampleKey, ProtocolCommand cmd, String... args)Stringset(String key, String value)Stringset(String key, String value, SetParams params)Booleansetbit(String key, long offset, boolean value)Booleansetbit(String key, long offset, String value)Stringsetex(String key, int seconds, String value)Longsetnx(String key, String value)Longsetrange(String key, long offset, String value)Set<String>sinter(String... keys)Longsinterstore(String dstkey, String... keys)Booleansismember(String key, String member)Set<String>smembers(String key)List<Boolean>smismember(String key, String... members)Longsmove(String srckey, String dstkey, String member)List<String>sort(String key)Longsort(String key, String dstkey)List<String>sort(String key, SortingParams sortingParameters)Longsort(String key, SortingParams sortingParameters, String dstkey)Stringspop(String key)Set<String>spop(String key, long count)Stringsrandmember(String key)List<String>srandmember(String key, int count)Longsrem(String key, String... member)ScanResult<String>sscan(String key, String cursor)Longstrlen(String key)voidsubscribe(JedisPubSub jedisPubSub, String... channels)Stringsubstr(String key, int start, int end)Set<String>sunion(String... keys)Longsunionstore(String dstkey, String... keys)Longtouch(String key)Longtouch(String... keys)Longttl(String key)Stringtype(String key)Longunlink(String key)Longunlink(String... keys)LongwaitReplicas(String key, int replicas, long timeout)Longxack(String key, String group, StreamEntryID... ids)XACK key group ID [ID ...]StreamEntryIDxadd(String key, StreamEntryID id, Map<String,String> hash)XADD key ID field string [field string ...]StreamEntryIDxadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)XADD key MAXLEN ~ LEN ID field string [field string ...]List<StreamEntry>xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)XCLAIM[IDLE ] [TIME ] [RETRYCOUNT ] [FORCE] [JUSTID] Longxdel(String key, StreamEntryID... ids)XDEL key ID [ID ...]StringxgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)XGROUP CREATELongxgroupDelConsumer(String key, String groupname, String consumername)XGROUP DELCONSUMERLongxgroupDestroy(String key, String groupname)XGROUP DESTROYStringxgroupSetID(String key, String groupname, StreamEntryID id)XGROUP SETIDLongxlen(String key)XLEN keyList<StreamPendingEntry>xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)XPENDING key group [start end count] [consumer]List<StreamEntry>xrange(String key, StreamEntryID start, StreamEntryID end, int count)XRANGE key start end [COUNT count]List<Map.Entry<String,List<StreamEntry>>>xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]List<Map.Entry<String,List<StreamEntry>>>xreadGroup(String groupname, String consumer, int count, long block, boolean noAck, Map.Entry<String,StreamEntryID>... streams)XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]List<StreamEntry>xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)XREVRANGE key end start [COUNT] Longxtrim(String key, long maxLen, boolean approximateLength)XTRIM key MAXLEN [~] countLongzadd(String key, double score, String member)Longzadd(String key, double score, String member, ZAddParams params)Longzadd(String key, Map<String,Double> scoreMembers)Longzadd(String key, Map<String,Double> scoreMembers, ZAddParams params)Longzcard(String key)Longzcount(String key, double min, double max)Longzcount(String key, String min, String max)Doublezincrby(String key, double increment, String member)Doublezincrby(String key, double increment, String member, ZIncrByParams params)Longzinterstore(String dstkey, String... sets)Longzinterstore(String dstkey, ZParams params, String... sets)Longzlexcount(String key, String min, String max)List<Double>zmscore(String key, String... members)Tuplezpopmax(String key)Set<Tuple>zpopmax(String key, int count)Tuplezpopmin(String key)Set<Tuple>zpopmin(String key, int count)Set<String>zrange(String key, long start, long stop)Set<String>zrangeByLex(String key, String min, String max)Set<String>zrangeByLex(String key, String min, String max, int offset, int count)Set<String>zrangeByScore(String key, double min, double max)Set<String>zrangeByScore(String key, double min, double max, int offset, int count)Set<String>zrangeByScore(String key, String min, String max)Set<String>zrangeByScore(String key, String min, String max, int offset, int count)Set<Tuple>zrangeByScoreWithScores(String key, double min, double max)Set<Tuple>zrangeByScoreWithScores(String key, double min, double max, int offset, int count)Set<Tuple>zrangeByScoreWithScores(String key, String min, String max)Set<Tuple>zrangeByScoreWithScores(String key, String min, String max, int offset, int count)Set<Tuple>zrangeWithScores(String key, long start, long stop)Longzrank(String key, String member)Longzrem(String key, String... members)LongzremrangeByLex(String key, String min, String max)LongzremrangeByRank(String key, long start, long stop)LongzremrangeByScore(String key, double min, double max)LongzremrangeByScore(String key, String min, String max)Set<String>zrevrange(String key, long start, long stop)Set<String>zrevrangeByLex(String key, String max, String min)Set<String>zrevrangeByLex(String key, String max, String min, int offset, int count)Set<String>zrevrangeByScore(String key, double max, double min)Set<String>zrevrangeByScore(String key, double max, double min, int offset, int count)Set<String>zrevrangeByScore(String key, String max, String min)Set<String>zrevrangeByScore(String key, String max, String min, int offset, int count)Set<Tuple>zrevrangeByScoreWithScores(String key, double max, double min)Set<Tuple>zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)Set<Tuple>zrevrangeByScoreWithScores(String key, String max, String min)Set<Tuple>zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)Set<Tuple>zrevrangeWithScores(String key, long start, long stop)Longzrevrank(String key, String member)ScanResult<Tuple>zscan(String key, String cursor)Doublezscore(String key, String member)Longzunionstore(String dstkey, String... sets)Longzunionstore(String dstkey, ZParams params, String... sets)-
Methods inherited from class redis.clients.jedis.BinaryJedisCluster
append, bitcount, bitcount, bitfield, bitfieldReadonly, bitop, blpop, brpop, brpoplpush, close, decr, decrBy, del, del, dump, echo, eval, eval, eval, eval, evalsha, evalsha, evalsha, exists, exists, expire, expireAt, geoadd, geoadd, geodist, geodist, geohash, geopos, georadius, georadius, georadiusByMember, georadiusByMember, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusByMemberStore, georadiusReadonly, georadiusReadonly, georadiusStore, get, getbit, getClusterNodes, getConnectionFromSlot, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hincrByFloat, hkeys, hlen, hmget, hmset, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, incr, incrBy, incrByFloat, keys, lindex, linsert, llen, lpop, lpop, lpos, lpos, lpos, lpush, lpushx, lrange, lrem, lset, ltrim, memoryUsage, memoryUsage, mget, mset, msetnx, persist, pexpire, pexpireAt, pfadd, pfcount, pfcount, pfmerge, psetex, psubscribe, pttl, publish, rename, renamenx, restore, rpop, rpop, rpoplpush, rpush, rpushx, sadd, scan, scard, scriptExists, scriptFlush, scriptKill, scriptLoad, sdiff, sdiffstore, sendBlockingCommand, sendCommand, set, set, setbit, setbit, setex, setnx, setrange, sinter, sinterstore, sismember, smembers, smismember, smove, sort, sort, sort, sort, spop, spop, srandmember, srandmember, srem, sscan, sscan, strlen, subscribe, substr, sunion, sunionstore, touch, touch, ttl, type, unlink, unlink, waitReplicas, xack, xadd, xclaim, xdel, xgroupCreate, xgroupDelConsumer, xgroupDestroy, xgroupSetID, xlen, xpending, xrange, xread, xreadGroup, xrevrange, xtrim, zadd, zadd, zadd, zadd, zcard, zcount, zcount, zincrby, zincrby, zinterstore, zinterstore, zlexcount, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrange, zrangeByLex, zrangeByLex, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByLex, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeByLex, zrevrangeByLex, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscore, zunionstore, zunionstore
-
-
-
-
Constructor Detail
-
JedisCluster
public JedisCluster(HostAndPort node)
-
JedisCluster
public JedisCluster(HostAndPort node, int timeout)
-
JedisCluster
public JedisCluster(HostAndPort node, int timeout, int maxAttempts)
-
JedisCluster
public JedisCluster(HostAndPort node, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
JedisCluster
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
JedisCluster
public JedisCluster(Set<HostAndPort> nodes)
-
JedisCluster
public JedisCluster(Set<HostAndPort> nodes, int timeout)
-
JedisCluster
public JedisCluster(Set<HostAndPort> nodes, int timeout, int maxAttempts)
-
JedisCluster
public JedisCluster(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> nodes, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
JedisCluster
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
-
-
Method Detail
-
set
public String set(String key, String value)
- Specified by:
setin interfaceJedisClusterCommands
-
set
public String set(String key, String value, SetParams params)
- Specified by:
setin interfaceJedisClusterCommands
-
get
public String get(String key)
- Specified by:
getin interfaceJedisClusterCommands
-
exists
public Boolean exists(String key)
- Specified by:
existsin interfaceJedisClusterCommands
-
exists
public Long exists(String... keys)
- Specified by:
existsin interfaceMultiKeyJedisClusterCommands
-
persist
public Long persist(String key)
- Specified by:
persistin interfaceJedisClusterCommands
-
type
public String type(String key)
- Specified by:
typein interfaceJedisClusterCommands
-
dump
public byte[] dump(String key)
- Specified by:
dumpin interfaceJedisClusterCommands
-
restore
public String restore(String key, int ttl, byte[] serializedValue)
- Specified by:
restorein interfaceJedisClusterCommands
-
expire
public Long expire(String key, int seconds)
- Specified by:
expirein interfaceJedisClusterCommands
-
pexpire
public Long pexpire(String key, long milliseconds)
- Specified by:
pexpirein interfaceJedisClusterCommands
-
expireAt
public Long expireAt(String key, long unixTime)
- Specified by:
expireAtin interfaceJedisClusterCommands
-
pexpireAt
public Long pexpireAt(String key, long millisecondsTimestamp)
- Specified by:
pexpireAtin interfaceJedisClusterCommands
-
ttl
public Long ttl(String key)
- Specified by:
ttlin interfaceJedisClusterCommands
-
pttl
public Long pttl(String key)
- Specified by:
pttlin interfaceJedisClusterCommands
-
touch
public Long touch(String key)
- Specified by:
touchin interfaceJedisClusterCommands
-
touch
public Long touch(String... keys)
- Specified by:
touchin interfaceMultiKeyJedisClusterCommands
-
setbit
public Boolean setbit(String key, long offset, boolean value)
- Specified by:
setbitin interfaceJedisClusterCommands
-
setbit
public Boolean setbit(String key, long offset, String value)
- Specified by:
setbitin interfaceJedisClusterCommands
-
getbit
public Boolean getbit(String key, long offset)
- Specified by:
getbitin interfaceJedisClusterCommands
-
setrange
public Long setrange(String key, long offset, String value)
- Specified by:
setrangein interfaceJedisClusterCommands
-
getrange
public String getrange(String key, long startOffset, long endOffset)
- Specified by:
getrangein interfaceJedisClusterCommands
-
getSet
public String getSet(String key, String value)
- Specified by:
getSetin interfaceJedisClusterCommands
-
setnx
public Long setnx(String key, String value)
- Specified by:
setnxin interfaceJedisClusterCommands
-
setex
public String setex(String key, int seconds, String value)
- Specified by:
setexin interfaceJedisClusterCommands
-
psetex
public String psetex(String key, long milliseconds, String value)
- Specified by:
psetexin interfaceJedisClusterCommands
-
decrBy
public Long decrBy(String key, long decrement)
- Specified by:
decrByin interfaceJedisClusterCommands
-
decr
public Long decr(String key)
- Specified by:
decrin interfaceJedisClusterCommands
-
incrBy
public Long incrBy(String key, long increment)
- Specified by:
incrByin interfaceJedisClusterCommands
-
incrByFloat
public Double incrByFloat(String key, double increment)
- Specified by:
incrByFloatin interfaceJedisClusterCommands
-
incr
public Long incr(String key)
- Specified by:
incrin interfaceJedisClusterCommands
-
append
public Long append(String key, String value)
- Specified by:
appendin interfaceJedisClusterCommands
-
substr
public String substr(String key, int start, int end)
- Specified by:
substrin interfaceJedisClusterCommands
-
hset
public Long hset(String key, String field, String value)
- Specified by:
hsetin interfaceJedisClusterCommands
-
hset
public Long hset(String key, Map<String,String> hash)
- Specified by:
hsetin interfaceJedisClusterCommands
-
hget
public String hget(String key, String field)
- Specified by:
hgetin interfaceJedisClusterCommands
-
hsetnx
public Long hsetnx(String key, String field, String value)
- Specified by:
hsetnxin interfaceJedisClusterCommands
-
hmset
public String hmset(String key, Map<String,String> hash)
- Specified by:
hmsetin interfaceJedisClusterCommands
-
hmget
public List<String> hmget(String key, String... fields)
- Specified by:
hmgetin interfaceJedisClusterCommands
-
hincrBy
public Long hincrBy(String key, String field, long value)
- Specified by:
hincrByin interfaceJedisClusterCommands
-
hincrByFloat
public Double hincrByFloat(String key, String field, double value)
- Specified by:
hincrByFloatin interfaceJedisClusterCommands
-
hexists
public Boolean hexists(String key, String field)
- Specified by:
hexistsin interfaceJedisClusterCommands
-
hdel
public Long hdel(String key, String... field)
- Specified by:
hdelin interfaceJedisClusterCommands
-
hlen
public Long hlen(String key)
- Specified by:
hlenin interfaceJedisClusterCommands
-
hkeys
public Set<String> hkeys(String key)
- Specified by:
hkeysin interfaceJedisClusterCommands
-
hvals
public List<String> hvals(String key)
- Specified by:
hvalsin interfaceJedisClusterCommands
-
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAllin interfaceJedisClusterCommands
-
rpush
public Long rpush(String key, String... string)
- Specified by:
rpushin interfaceJedisClusterCommands
-
lpush
public Long lpush(String key, String... string)
- Specified by:
lpushin interfaceJedisClusterCommands
-
llen
public Long llen(String key)
- Specified by:
llenin interfaceJedisClusterCommands
-
lrange
public List<String> lrange(String key, long start, long stop)
- Specified by:
lrangein interfaceJedisClusterCommands
-
ltrim
public String ltrim(String key, long start, long stop)
- Specified by:
ltrimin interfaceJedisClusterCommands
-
lindex
public String lindex(String key, long index)
- Specified by:
lindexin interfaceJedisClusterCommands
-
lset
public String lset(String key, long index, String value)
- Specified by:
lsetin interfaceJedisClusterCommands
-
lrem
public Long lrem(String key, long count, String value)
- Specified by:
lremin interfaceJedisClusterCommands
-
lpop
public String lpop(String key)
- Specified by:
lpopin interfaceJedisClusterCommands
-
lpop
public List<String> lpop(String key, int count)
- Specified by:
lpopin interfaceJedisClusterCommands
-
lpos
public Long lpos(String key, String element)
- Specified by:
lposin interfaceJedisClusterCommands
-
lpos
public Long lpos(String key, String element, LPosParams params)
- Specified by:
lposin interfaceJedisClusterCommands
-
lpos
public List<Long> lpos(String key, String element, LPosParams params, long count)
- Specified by:
lposin interfaceJedisClusterCommands
-
rpop
public String rpop(String key)
- Specified by:
rpopin interfaceJedisClusterCommands
-
rpop
public List<String> rpop(String key, int count)
- Specified by:
rpopin interfaceJedisClusterCommands
-
sadd
public Long sadd(String key, String... member)
- Specified by:
saddin interfaceJedisClusterCommands
-
smembers
public Set<String> smembers(String key)
- Specified by:
smembersin interfaceJedisClusterCommands
-
srem
public Long srem(String key, String... member)
- Specified by:
sremin interfaceJedisClusterCommands
-
spop
public String spop(String key)
- Specified by:
spopin interfaceJedisClusterCommands
-
spop
public Set<String> spop(String key, long count)
- Specified by:
spopin interfaceJedisClusterCommands
-
scard
public Long scard(String key)
- Specified by:
scardin interfaceJedisClusterCommands
-
sismember
public Boolean sismember(String key, String member)
- Specified by:
sismemberin interfaceJedisClusterCommands
-
smismember
public List<Boolean> smismember(String key, String... members)
- Specified by:
smismemberin interfaceJedisClusterCommands
-
srandmember
public String srandmember(String key)
- Specified by:
srandmemberin interfaceJedisClusterCommands
-
srandmember
public List<String> srandmember(String key, int count)
- Specified by:
srandmemberin interfaceJedisClusterCommands
-
strlen
public Long strlen(String key)
- Specified by:
strlenin interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, double score, String member)
- Specified by:
zaddin interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, double score, String member, ZAddParams params)
- Specified by:
zaddin interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers)
- Specified by:
zaddin interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
- Specified by:
zaddin interfaceJedisClusterCommands
-
zrange
public Set<String> zrange(String key, long start, long stop)
- Specified by:
zrangein interfaceJedisClusterCommands
-
zrem
public Long zrem(String key, String... members)
- Specified by:
zremin interfaceJedisClusterCommands
-
zincrby
public Double zincrby(String key, double increment, String member)
- Specified by:
zincrbyin interfaceJedisClusterCommands
-
zincrby
public Double zincrby(String key, double increment, String member, ZIncrByParams params)
- Specified by:
zincrbyin interfaceJedisClusterCommands
-
zrank
public Long zrank(String key, String member)
- Specified by:
zrankin interfaceJedisClusterCommands
-
zrevrank
public Long zrevrank(String key, String member)
- Specified by:
zrevrankin interfaceJedisClusterCommands
-
zrevrange
public Set<String> zrevrange(String key, long start, long stop)
- Specified by:
zrevrangein interfaceJedisClusterCommands
-
zrangeWithScores
public Set<Tuple> zrangeWithScores(String key, long start, long stop)
- Specified by:
zrangeWithScoresin interfaceJedisClusterCommands
-
zrevrangeWithScores
public Set<Tuple> zrevrangeWithScores(String key, long start, long stop)
- Specified by:
zrevrangeWithScoresin interfaceJedisClusterCommands
-
zcard
public Long zcard(String key)
- Specified by:
zcardin interfaceJedisClusterCommands
-
zscore
public Double zscore(String key, String member)
- Specified by:
zscorein interfaceJedisClusterCommands
-
zmscore
public List<Double> zmscore(String key, String... members)
- Specified by:
zmscorein interfaceJedisClusterCommands
-
zpopmax
public Tuple zpopmax(String key)
- Specified by:
zpopmaxin interfaceJedisClusterCommands
-
zpopmax
public Set<Tuple> zpopmax(String key, int count)
- Specified by:
zpopmaxin interfaceJedisClusterCommands
-
zpopmin
public Tuple zpopmin(String key)
- Specified by:
zpopminin interfaceJedisClusterCommands
-
zpopmin
public Set<Tuple> zpopmin(String key, int count)
- Specified by:
zpopminin interfaceJedisClusterCommands
-
sort
public List<String> sort(String key)
- Specified by:
sortin interfaceJedisClusterCommands
-
sort
public List<String> sort(String key, SortingParams sortingParameters)
- Specified by:
sortin interfaceJedisClusterCommands
-
zcount
public Long zcount(String key, double min, double max)
- Specified by:
zcountin interfaceJedisClusterCommands
-
zcount
public Long zcount(String key, String min, String max)
- Specified by:
zcountin interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max)
- Specified by:
zrangeByScorein interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max)
- Specified by:
zrangeByScorein interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min)
- Specified by:
zrevrangeByScorein interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScorein interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min)
- Specified by:
zrevrangeByScorein interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScorein interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScorein interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScorein interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisClusterCommands
-
zremrangeByRank
public Long zremrangeByRank(String key, long start, long stop)
- Specified by:
zremrangeByRankin interfaceJedisClusterCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, double min, double max)
- Specified by:
zremrangeByScorein interfaceJedisClusterCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, String min, String max)
- Specified by:
zremrangeByScorein interfaceJedisClusterCommands
-
zlexcount
public Long zlexcount(String key, String min, String max)
- Specified by:
zlexcountin interfaceJedisClusterCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max)
- Specified by:
zrangeByLexin interfaceJedisClusterCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByLexin interfaceJedisClusterCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min)
- Specified by:
zrevrangeByLexin interfaceJedisClusterCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByLexin interfaceJedisClusterCommands
-
zremrangeByLex
public Long zremrangeByLex(String key, String min, String max)
- Specified by:
zremrangeByLexin interfaceJedisClusterCommands
-
linsert
public Long linsert(String key, ListPosition where, String pivot, String value)
- Specified by:
linsertin interfaceJedisClusterCommands
-
lpushx
public Long lpushx(String key, String... string)
- Specified by:
lpushxin interfaceJedisClusterCommands
-
rpushx
public Long rpushx(String key, String... string)
- Specified by:
rpushxin interfaceJedisClusterCommands
-
del
public Long del(String key)
- Specified by:
delin interfaceJedisClusterCommands
-
unlink
public Long unlink(String key)
- Specified by:
unlinkin interfaceJedisClusterCommands
-
unlink
public Long unlink(String... keys)
- Specified by:
unlinkin interfaceMultiKeyJedisClusterCommands
-
echo
public String echo(String string)
- Specified by:
echoin interfaceJedisClusterCommands
-
bitcount
public Long bitcount(String key)
- Specified by:
bitcountin interfaceJedisClusterCommands
-
bitcount
public Long bitcount(String key, long start, long end)
- Specified by:
bitcountin interfaceJedisClusterCommands
-
keys
public Set<String> keys(String pattern)
- Specified by:
keysin interfaceMultiKeyJedisClusterCommands
-
scan
public ScanResult<String> scan(String cursor, ScanParams params)
- Specified by:
scanin interfaceMultiKeyJedisClusterCommands
-
hscan
public ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
- Specified by:
hscanin interfaceJedisClusterCommands
-
sscan
public ScanResult<String> sscan(String key, String cursor)
- Specified by:
sscanin interfaceJedisClusterCommands
-
zscan
public ScanResult<Tuple> zscan(String key, String cursor)
- Specified by:
zscanin interfaceJedisClusterCommands
-
pfadd
public Long pfadd(String key, String... elements)
- Specified by:
pfaddin interfaceJedisClusterCommands
-
pfcount
public long pfcount(String key)
- Specified by:
pfcountin interfaceJedisClusterCommands
-
blpop
public List<String> blpop(int timeout, String key)
- Specified by:
blpopin interfaceJedisClusterCommands
-
brpop
public List<String> brpop(int timeout, String key)
- Specified by:
brpopin interfaceJedisClusterCommands
-
del
public Long del(String... keys)
- Specified by:
delin interfaceMultiKeyJedisClusterCommands
-
blpop
public List<String> blpop(int timeout, String... keys)
- Specified by:
blpopin interfaceMultiKeyJedisClusterCommands
-
brpop
public List<String> brpop(int timeout, String... keys)
- Specified by:
brpopin interfaceMultiKeyJedisClusterCommands
-
mget
public List<String> mget(String... keys)
- Specified by:
mgetin interfaceMultiKeyJedisClusterCommands
-
mset
public String mset(String... keysvalues)
- Specified by:
msetin interfaceMultiKeyJedisClusterCommands
-
msetnx
public Long msetnx(String... keysvalues)
- Specified by:
msetnxin interfaceMultiKeyJedisClusterCommands
-
rename
public String rename(String oldkey, String newkey)
- Specified by:
renamein interfaceMultiKeyJedisClusterCommands
-
renamenx
public Long renamenx(String oldkey, String newkey)
- Specified by:
renamenxin interfaceMultiKeyJedisClusterCommands
-
rpoplpush
public String rpoplpush(String srckey, String dstkey)
- Specified by:
rpoplpushin interfaceMultiKeyJedisClusterCommands
-
sdiff
public Set<String> sdiff(String... keys)
- Specified by:
sdiffin interfaceMultiKeyJedisClusterCommands
-
sdiffstore
public Long sdiffstore(String dstkey, String... keys)
- Specified by:
sdiffstorein interfaceMultiKeyJedisClusterCommands
-
sinter
public Set<String> sinter(String... keys)
- Specified by:
sinterin interfaceMultiKeyJedisClusterCommands
-
sinterstore
public Long sinterstore(String dstkey, String... keys)
- Specified by:
sinterstorein interfaceMultiKeyJedisClusterCommands
-
smove
public Long smove(String srckey, String dstkey, String member)
- Specified by:
smovein interfaceMultiKeyJedisClusterCommands
-
sort
public Long sort(String key, SortingParams sortingParameters, String dstkey)
- Specified by:
sortin interfaceMultiKeyJedisClusterCommands
-
sort
public Long sort(String key, String dstkey)
- Specified by:
sortin interfaceMultiKeyJedisClusterCommands
-
sunion
public Set<String> sunion(String... keys)
- Specified by:
sunionin interfaceMultiKeyJedisClusterCommands
-
sunionstore
public Long sunionstore(String dstkey, String... keys)
- Specified by:
sunionstorein interfaceMultiKeyJedisClusterCommands
-
zinterstore
public Long zinterstore(String dstkey, String... sets)
- Specified by:
zinterstorein interfaceMultiKeyJedisClusterCommands
-
zinterstore
public Long zinterstore(String dstkey, ZParams params, String... sets)
- Specified by:
zinterstorein interfaceMultiKeyJedisClusterCommands
-
zunionstore
public Long zunionstore(String dstkey, String... sets)
- Specified by:
zunionstorein interfaceMultiKeyJedisClusterCommands
-
zunionstore
public Long zunionstore(String dstkey, ZParams params, String... sets)
- Specified by:
zunionstorein interfaceMultiKeyJedisClusterCommands
-
brpoplpush
public String brpoplpush(String source, String destination, int timeout)
- Specified by:
brpoplpushin interfaceMultiKeyJedisClusterCommands
-
publish
public Long publish(String channel, String message)
- Specified by:
publishin interfaceMultiKeyJedisClusterCommands
-
subscribe
public void subscribe(JedisPubSub jedisPubSub, String... channels)
- Specified by:
subscribein interfaceMultiKeyJedisClusterCommands
-
psubscribe
public void psubscribe(JedisPubSub jedisPubSub, String... patterns)
- Specified by:
psubscribein interfaceMultiKeyJedisClusterCommands
-
bitop
public Long bitop(BitOP op, String destKey, String... srcKeys)
- Specified by:
bitopin interfaceMultiKeyJedisClusterCommands
-
pfmerge
public String pfmerge(String destkey, String... sourcekeys)
- Specified by:
pfmergein interfaceMultiKeyJedisClusterCommands
-
pfcount
public long pfcount(String... keys)
- Specified by:
pfcountin interfaceMultiKeyJedisClusterCommands
-
eval
public Object eval(String script, int keyCount, String... params)
- Specified by:
evalin interfaceJedisClusterScriptingCommands
-
eval
public Object eval(String script, String sampleKey)
- Specified by:
evalin interfaceJedisClusterScriptingCommandssampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
eval
public Object eval(String script, List<String> keys, List<String> args)
- Specified by:
evalin interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, int keyCount, String... params)
- Specified by:
evalshain interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, List<String> keys, List<String> args)
- Specified by:
evalshain interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, String sampleKey)
- Specified by:
evalshain interfaceJedisClusterScriptingCommandssampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
scriptExists
public Boolean scriptExists(String sha1, String sampleKey)
- Specified by:
scriptExistsin interfaceJedisClusterScriptingCommandssampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
scriptExists
public List<Boolean> scriptExists(String sampleKey, String... sha1)
- Specified by:
scriptExistsin interfaceJedisClusterScriptingCommands- Parameters:
sampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
scriptLoad
public String scriptLoad(String script, String sampleKey)
- Specified by:
scriptLoadin interfaceJedisClusterScriptingCommandssampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
scriptFlush
public String scriptFlush(String sampleKey)
- Specified by:
scriptFlushin interfaceJedisClusterScriptingCommands- Parameters:
sampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
scriptKill
public String scriptKill(String sampleKey)
- Specified by:
scriptKillin interfaceJedisClusterScriptingCommands- Parameters:
sampleKey- Command will be executed in the node where the hash slot of this key is assigned to- Returns:
-
geoadd
public Long geoadd(String key, double longitude, double latitude, String member)
- Specified by:
geoaddin interfaceJedisClusterCommands
-
geoadd
public Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
- Specified by:
geoaddin interfaceJedisClusterCommands
-
geodist
public Double geodist(String key, String member1, String member2)
- Specified by:
geodistin interfaceJedisClusterCommands
-
geodist
public Double geodist(String key, String member1, String member2, GeoUnit unit)
- Specified by:
geodistin interfaceJedisClusterCommands
-
geohash
public List<String> geohash(String key, String... members)
- Specified by:
geohashin interfaceJedisClusterCommands
-
geopos
public List<GeoCoordinate> geopos(String key, String... members)
- Specified by:
geoposin interfaceJedisClusterCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadiusin interfaceJedisClusterCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadiusReadonlyin interfaceJedisClusterCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusin interfaceJedisClusterCommands
-
georadiusStore
public Long georadiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusStorein interfaceMultiKeyJedisClusterCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusReadonlyin interfaceJedisClusterCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMemberin interfaceJedisClusterCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMemberReadonlyin interfaceJedisClusterCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMemberin interfaceJedisClusterCommands
-
georadiusByMemberStore
public Long georadiusByMemberStore(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusByMemberStorein interfaceMultiKeyJedisClusterCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMemberReadonlyin interfaceJedisClusterCommands
-
bitfield
public List<Long> bitfield(String key, String... arguments)
Description copied from interface:JedisClusterCommandsExecutes BITFIELD Redis command- Specified by:
bitfieldin interfaceJedisClusterCommands- Returns:
-
bitfieldReadonly
public List<Long> bitfieldReadonly(String key, String... arguments)
- Specified by:
bitfieldReadonlyin interfaceJedisClusterCommands
-
hstrlen
public Long hstrlen(String key, String field)
Description copied from interface:JedisClusterCommandsUsed for HSTRLEN Redis command- Specified by:
hstrlenin interfaceJedisClusterCommands- Returns:
- lenth of the value for key
-
memoryUsage
public Long memoryUsage(String key)
Description copied from interface:JedisClusterCommandsMEMORY USAGE key- Specified by:
memoryUsagein interfaceJedisClusterCommands- Returns:
- the memory usage
-
memoryUsage
public Long memoryUsage(String key, int samples)
Description copied from interface:JedisClusterCommandsMEMORY USAGE key [SAMPLES count]- Specified by:
memoryUsagein interfaceJedisClusterCommands- Returns:
- the memory usage
-
xadd
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
Description copied from interface:JedisClusterCommandsXADD key ID field string [field string ...]- Specified by:
xaddin interfaceJedisClusterCommands- Returns:
- the ID of the added entry
-
xadd
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
Description copied from interface:JedisClusterCommandsXADD key MAXLEN ~ LEN ID field string [field string ...]- Specified by:
xaddin interfaceJedisClusterCommands- Returns:
-
xlen
public Long xlen(String key)
Description copied from interface:JedisClusterCommandsXLEN key- Specified by:
xlenin interfaceJedisClusterCommands- Returns:
-
xrange
public List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
Description copied from interface:JedisClusterCommandsXRANGE key start end [COUNT count]- Specified by:
xrangein interfaceJedisClusterCommands- Returns:
-
xrevrange
public List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
Description copied from interface:JedisClusterCommandsXREVRANGE key end start [COUNT] - Specified by:
xrevrangein interfaceJedisClusterCommands- Returns:
-
xread
public List<Map.Entry<String,List<StreamEntry>>> xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)
Description copied from interface:MultiKeyJedisClusterCommandsXREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]- Specified by:
xreadin interfaceJedisClusterCommands- Specified by:
xreadin interfaceMultiKeyJedisClusterCommands- Returns:
-
xack
public Long xack(String key, String group, StreamEntryID... ids)
Description copied from interface:JedisClusterCommandsXACK key group ID [ID ...]- Specified by:
xackin interfaceJedisClusterCommands- Returns:
-
xgroupCreate
public String xgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)
Description copied from interface:JedisClusterCommandsXGROUP CREATE- Specified by:
xgroupCreatein interfaceJedisClusterCommands- Returns:
-
xgroupSetID
public String xgroupSetID(String key, String groupname, StreamEntryID id)
Description copied from interface:JedisClusterCommandsXGROUP SETID- Specified by:
xgroupSetIDin interfaceJedisClusterCommands- Returns:
-
xgroupDestroy
public Long xgroupDestroy(String key, String groupname)
Description copied from interface:JedisClusterCommandsXGROUP DESTROY- Specified by:
xgroupDestroyin interfaceJedisClusterCommands- Returns:
-
xgroupDelConsumer
public Long xgroupDelConsumer(String key, String groupname, String consumername)
Description copied from interface:JedisClusterCommandsXGROUP DELCONSUMER- Specified by:
xgroupDelConsumerin interfaceJedisClusterCommands- Returns:
-
xreadGroup
public List<Map.Entry<String,List<StreamEntry>>> xreadGroup(String groupname, String consumer, int count, long block, boolean noAck, Map.Entry<String,StreamEntryID>... streams)
Description copied from interface:MultiKeyJedisClusterCommandsXREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]- Specified by:
xreadGroupin interfaceJedisClusterCommands- Specified by:
xreadGroupin interfaceMultiKeyJedisClusterCommands- Returns:
-
xpending
public List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
Description copied from interface:JedisClusterCommandsXPENDING key group [start end count] [consumer]- Specified by:
xpendingin interfaceJedisClusterCommands- Returns:
-
xdel
public Long xdel(String key, StreamEntryID... ids)
Description copied from interface:JedisClusterCommandsXDEL key ID [ID ...]- Specified by:
xdelin interfaceJedisClusterCommands- Returns:
-
xtrim
public Long xtrim(String key, long maxLen, boolean approximateLength)
Description copied from interface:JedisClusterCommandsXTRIM key MAXLEN [~] count- Specified by:
xtrimin interfaceJedisClusterCommands- Returns:
-
xclaim
public List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
Description copied from interface:JedisClusterCommandsXCLAIM[IDLE ] [TIME ] [RETRYCOUNT ] [FORCE] [JUSTID] - Specified by:
xclaimin interfaceJedisClusterCommands
-
waitReplicas
public Long waitReplicas(String key, int replicas, long timeout)
- Specified by:
waitReplicasin interfaceJedisClusterCommands
-
sendCommand
public Object sendCommand(String sampleKey, ProtocolCommand cmd, String... args)
-
sendBlockingCommand
public Object sendBlockingCommand(String sampleKey, ProtocolCommand cmd, String... args)
-
-