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 Long
append(String key, String value)
Long
bitcount(String key)
Long
bitcount(String key, long start, long end)
List<Long>
bitfield(String key, String... arguments)
Executes BITFIELD Redis commandList<Long>
bitfieldReadonly(String key, String... arguments)
Long
bitop(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)
String
brpoplpush(String source, String destination, int timeout)
Long
decr(String key)
Long
decrBy(String key, long decrement)
Long
del(String key)
Long
del(String... keys)
byte[]
dump(String key)
String
echo(String string)
Object
eval(String script, int keyCount, String... params)
Object
eval(String script, String sampleKey)
Object
eval(String script, List<String> keys, List<String> args)
Object
evalsha(String sha1, int keyCount, String... params)
Object
evalsha(String sha1, String sampleKey)
Object
evalsha(String sha1, List<String> keys, List<String> args)
Boolean
exists(String key)
Long
exists(String... keys)
Long
expire(String key, int seconds)
Long
expireAt(String key, long unixTime)
Long
geoadd(String key, double longitude, double latitude, String member)
Long
geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
Double
geodist(String key, String member1, String member2)
Double
geodist(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)
Long
georadiusByMemberStore(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)
Long
georadiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
String
get(String key)
Boolean
getbit(String key, long offset)
String
getrange(String key, long startOffset, long endOffset)
String
getSet(String key, String value)
Long
hdel(String key, String... field)
Boolean
hexists(String key, String field)
String
hget(String key, String field)
Map<String,String>
hgetAll(String key)
Long
hincrBy(String key, String field, long value)
Double
hincrByFloat(String key, String field, double value)
Set<String>
hkeys(String key)
Long
hlen(String key)
List<String>
hmget(String key, String... fields)
String
hmset(String key, Map<String,String> hash)
ScanResult<Map.Entry<String,String>>
hscan(String key, String cursor)
Long
hset(String key, String field, String value)
Long
hset(String key, Map<String,String> hash)
Long
hsetnx(String key, String field, String value)
Long
hstrlen(String key, String field)
Used for HSTRLEN Redis commandList<String>
hvals(String key)
Long
incr(String key)
Long
incrBy(String key, long increment)
Double
incrByFloat(String key, double increment)
Set<String>
keys(String pattern)
String
lindex(String key, long index)
Long
linsert(String key, ListPosition where, String pivot, String value)
Long
llen(String key)
String
lpop(String key)
List<String>
lpop(String key, int count)
Long
lpos(String key, String element)
Long
lpos(String key, String element, LPosParams params)
List<Long>
lpos(String key, String element, LPosParams params, long count)
Long
lpush(String key, String... string)
Long
lpushx(String key, String... string)
List<String>
lrange(String key, long start, long stop)
Long
lrem(String key, long count, String value)
String
lset(String key, long index, String value)
String
ltrim(String key, long start, long stop)
Long
memoryUsage(String key)
MEMORY USAGE keyLong
memoryUsage(String key, int samples)
MEMORY USAGE key [SAMPLES count]List<String>
mget(String... keys)
String
mset(String... keysvalues)
Long
msetnx(String... keysvalues)
Long
persist(String key)
Long
pexpire(String key, long milliseconds)
Long
pexpireAt(String key, long millisecondsTimestamp)
Long
pfadd(String key, String... elements)
long
pfcount(String key)
long
pfcount(String... keys)
String
pfmerge(String destkey, String... sourcekeys)
String
psetex(String key, long milliseconds, String value)
void
psubscribe(JedisPubSub jedisPubSub, String... patterns)
Long
pttl(String key)
Long
publish(String channel, String message)
String
rename(String oldkey, String newkey)
Long
renamenx(String oldkey, String newkey)
String
restore(String key, int ttl, byte[] serializedValue)
String
rpop(String key)
List<String>
rpop(String key, int count)
String
rpoplpush(String srckey, String dstkey)
Long
rpush(String key, String... string)
Long
rpushx(String key, String... string)
Long
sadd(String key, String... member)
ScanResult<String>
scan(String cursor, ScanParams params)
Long
scard(String key)
Boolean
scriptExists(String sha1, String sampleKey)
List<Boolean>
scriptExists(String sampleKey, String... sha1)
String
scriptFlush(String sampleKey)
String
scriptKill(String sampleKey)
String
scriptLoad(String script, String sampleKey)
Set<String>
sdiff(String... keys)
Long
sdiffstore(String dstkey, String... keys)
Object
sendBlockingCommand(String sampleKey, ProtocolCommand cmd, String... args)
Object
sendCommand(String sampleKey, ProtocolCommand cmd, String... args)
String
set(String key, String value)
String
set(String key, String value, SetParams params)
Boolean
setbit(String key, long offset, boolean value)
Boolean
setbit(String key, long offset, String value)
String
setex(String key, int seconds, String value)
Long
setnx(String key, String value)
Long
setrange(String key, long offset, String value)
Set<String>
sinter(String... keys)
Long
sinterstore(String dstkey, String... keys)
Boolean
sismember(String key, String member)
Set<String>
smembers(String key)
List<Boolean>
smismember(String key, String... members)
Long
smove(String srckey, String dstkey, String member)
List<String>
sort(String key)
Long
sort(String key, String dstkey)
List<String>
sort(String key, SortingParams sortingParameters)
Long
sort(String key, SortingParams sortingParameters, String dstkey)
String
spop(String key)
Set<String>
spop(String key, long count)
String
srandmember(String key)
List<String>
srandmember(String key, int count)
Long
srem(String key, String... member)
ScanResult<String>
sscan(String key, String cursor)
Long
strlen(String key)
void
subscribe(JedisPubSub jedisPubSub, String... channels)
String
substr(String key, int start, int end)
Set<String>
sunion(String... keys)
Long
sunionstore(String dstkey, String... keys)
Long
touch(String key)
Long
touch(String... keys)
Long
ttl(String key)
String
type(String key)
Long
unlink(String key)
Long
unlink(String... keys)
Long
waitReplicas(String key, int replicas, long timeout)
Long
xack(String key, String group, StreamEntryID... ids)
XACK key group ID [ID ...]StreamEntryID
xadd(String key, StreamEntryID id, Map<String,String> hash)
XADD key ID field string [field string ...]StreamEntryID
xadd(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] Long
xdel(String key, StreamEntryID... ids)
XDEL key ID [ID ...]String
xgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)
XGROUP CREATELong
xgroupDelConsumer(String key, String groupname, String consumername)
XGROUP DELCONSUMERLong
xgroupDestroy(String key, String groupname)
XGROUP DESTROYString
xgroupSetID(String key, String groupname, StreamEntryID id)
XGROUP SETIDLong
xlen(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] Long
xtrim(String key, long maxLen, boolean approximateLength)
XTRIM key MAXLEN [~] countLong
zadd(String key, double score, String member)
Long
zadd(String key, double score, String member, ZAddParams params)
Long
zadd(String key, Map<String,Double> scoreMembers)
Long
zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
Long
zcard(String key)
Long
zcount(String key, double min, double max)
Long
zcount(String key, String min, String max)
Double
zincrby(String key, double increment, String member)
Double
zincrby(String key, double increment, String member, ZIncrByParams params)
Long
zinterstore(String dstkey, String... sets)
Long
zinterstore(String dstkey, ZParams params, String... sets)
Long
zlexcount(String key, String min, String max)
List<Double>
zmscore(String key, String... members)
Tuple
zpopmax(String key)
Set<Tuple>
zpopmax(String key, int count)
Tuple
zpopmin(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)
Long
zrank(String key, String member)
Long
zrem(String key, String... members)
Long
zremrangeByLex(String key, String min, String max)
Long
zremrangeByRank(String key, long start, long stop)
Long
zremrangeByScore(String key, double min, double max)
Long
zremrangeByScore(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)
Long
zrevrank(String key, String member)
ScanResult<Tuple>
zscan(String key, String cursor)
Double
zscore(String key, String member)
Long
zunionstore(String dstkey, String... sets)
Long
zunionstore(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:
set
in interfaceJedisClusterCommands
-
set
public String set(String key, String value, SetParams params)
- Specified by:
set
in interfaceJedisClusterCommands
-
get
public String get(String key)
- Specified by:
get
in interfaceJedisClusterCommands
-
exists
public Boolean exists(String key)
- Specified by:
exists
in interfaceJedisClusterCommands
-
exists
public Long exists(String... keys)
- Specified by:
exists
in interfaceMultiKeyJedisClusterCommands
-
persist
public Long persist(String key)
- Specified by:
persist
in interfaceJedisClusterCommands
-
type
public String type(String key)
- Specified by:
type
in interfaceJedisClusterCommands
-
dump
public byte[] dump(String key)
- Specified by:
dump
in interfaceJedisClusterCommands
-
restore
public String restore(String key, int ttl, byte[] serializedValue)
- Specified by:
restore
in interfaceJedisClusterCommands
-
expire
public Long expire(String key, int seconds)
- Specified by:
expire
in interfaceJedisClusterCommands
-
pexpire
public Long pexpire(String key, long milliseconds)
- Specified by:
pexpire
in interfaceJedisClusterCommands
-
expireAt
public Long expireAt(String key, long unixTime)
- Specified by:
expireAt
in interfaceJedisClusterCommands
-
pexpireAt
public Long pexpireAt(String key, long millisecondsTimestamp)
- Specified by:
pexpireAt
in interfaceJedisClusterCommands
-
ttl
public Long ttl(String key)
- Specified by:
ttl
in interfaceJedisClusterCommands
-
pttl
public Long pttl(String key)
- Specified by:
pttl
in interfaceJedisClusterCommands
-
touch
public Long touch(String key)
- Specified by:
touch
in interfaceJedisClusterCommands
-
touch
public Long touch(String... keys)
- Specified by:
touch
in interfaceMultiKeyJedisClusterCommands
-
setbit
public Boolean setbit(String key, long offset, boolean value)
- Specified by:
setbit
in interfaceJedisClusterCommands
-
setbit
public Boolean setbit(String key, long offset, String value)
- Specified by:
setbit
in interfaceJedisClusterCommands
-
getbit
public Boolean getbit(String key, long offset)
- Specified by:
getbit
in interfaceJedisClusterCommands
-
setrange
public Long setrange(String key, long offset, String value)
- Specified by:
setrange
in interfaceJedisClusterCommands
-
getrange
public String getrange(String key, long startOffset, long endOffset)
- Specified by:
getrange
in interfaceJedisClusterCommands
-
getSet
public String getSet(String key, String value)
- Specified by:
getSet
in interfaceJedisClusterCommands
-
setnx
public Long setnx(String key, String value)
- Specified by:
setnx
in interfaceJedisClusterCommands
-
setex
public String setex(String key, int seconds, String value)
- Specified by:
setex
in interfaceJedisClusterCommands
-
psetex
public String psetex(String key, long milliseconds, String value)
- Specified by:
psetex
in interfaceJedisClusterCommands
-
decrBy
public Long decrBy(String key, long decrement)
- Specified by:
decrBy
in interfaceJedisClusterCommands
-
decr
public Long decr(String key)
- Specified by:
decr
in interfaceJedisClusterCommands
-
incrBy
public Long incrBy(String key, long increment)
- Specified by:
incrBy
in interfaceJedisClusterCommands
-
incrByFloat
public Double incrByFloat(String key, double increment)
- Specified by:
incrByFloat
in interfaceJedisClusterCommands
-
incr
public Long incr(String key)
- Specified by:
incr
in interfaceJedisClusterCommands
-
append
public Long append(String key, String value)
- Specified by:
append
in interfaceJedisClusterCommands
-
substr
public String substr(String key, int start, int end)
- Specified by:
substr
in interfaceJedisClusterCommands
-
hset
public Long hset(String key, String field, String value)
- Specified by:
hset
in interfaceJedisClusterCommands
-
hset
public Long hset(String key, Map<String,String> hash)
- Specified by:
hset
in interfaceJedisClusterCommands
-
hget
public String hget(String key, String field)
- Specified by:
hget
in interfaceJedisClusterCommands
-
hsetnx
public Long hsetnx(String key, String field, String value)
- Specified by:
hsetnx
in interfaceJedisClusterCommands
-
hmset
public String hmset(String key, Map<String,String> hash)
- Specified by:
hmset
in interfaceJedisClusterCommands
-
hmget
public List<String> hmget(String key, String... fields)
- Specified by:
hmget
in interfaceJedisClusterCommands
-
hincrBy
public Long hincrBy(String key, String field, long value)
- Specified by:
hincrBy
in interfaceJedisClusterCommands
-
hincrByFloat
public Double hincrByFloat(String key, String field, double value)
- Specified by:
hincrByFloat
in interfaceJedisClusterCommands
-
hexists
public Boolean hexists(String key, String field)
- Specified by:
hexists
in interfaceJedisClusterCommands
-
hdel
public Long hdel(String key, String... field)
- Specified by:
hdel
in interfaceJedisClusterCommands
-
hlen
public Long hlen(String key)
- Specified by:
hlen
in interfaceJedisClusterCommands
-
hkeys
public Set<String> hkeys(String key)
- Specified by:
hkeys
in interfaceJedisClusterCommands
-
hvals
public List<String> hvals(String key)
- Specified by:
hvals
in interfaceJedisClusterCommands
-
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAll
in interfaceJedisClusterCommands
-
rpush
public Long rpush(String key, String... string)
- Specified by:
rpush
in interfaceJedisClusterCommands
-
lpush
public Long lpush(String key, String... string)
- Specified by:
lpush
in interfaceJedisClusterCommands
-
llen
public Long llen(String key)
- Specified by:
llen
in interfaceJedisClusterCommands
-
lrange
public List<String> lrange(String key, long start, long stop)
- Specified by:
lrange
in interfaceJedisClusterCommands
-
ltrim
public String ltrim(String key, long start, long stop)
- Specified by:
ltrim
in interfaceJedisClusterCommands
-
lindex
public String lindex(String key, long index)
- Specified by:
lindex
in interfaceJedisClusterCommands
-
lset
public String lset(String key, long index, String value)
- Specified by:
lset
in interfaceJedisClusterCommands
-
lrem
public Long lrem(String key, long count, String value)
- Specified by:
lrem
in interfaceJedisClusterCommands
-
lpop
public String lpop(String key)
- Specified by:
lpop
in interfaceJedisClusterCommands
-
lpop
public List<String> lpop(String key, int count)
- Specified by:
lpop
in interfaceJedisClusterCommands
-
lpos
public Long lpos(String key, String element)
- Specified by:
lpos
in interfaceJedisClusterCommands
-
lpos
public Long lpos(String key, String element, LPosParams params)
- Specified by:
lpos
in interfaceJedisClusterCommands
-
lpos
public List<Long> lpos(String key, String element, LPosParams params, long count)
- Specified by:
lpos
in interfaceJedisClusterCommands
-
rpop
public String rpop(String key)
- Specified by:
rpop
in interfaceJedisClusterCommands
-
rpop
public List<String> rpop(String key, int count)
- Specified by:
rpop
in interfaceJedisClusterCommands
-
sadd
public Long sadd(String key, String... member)
- Specified by:
sadd
in interfaceJedisClusterCommands
-
smembers
public Set<String> smembers(String key)
- Specified by:
smembers
in interfaceJedisClusterCommands
-
srem
public Long srem(String key, String... member)
- Specified by:
srem
in interfaceJedisClusterCommands
-
spop
public String spop(String key)
- Specified by:
spop
in interfaceJedisClusterCommands
-
spop
public Set<String> spop(String key, long count)
- Specified by:
spop
in interfaceJedisClusterCommands
-
scard
public Long scard(String key)
- Specified by:
scard
in interfaceJedisClusterCommands
-
sismember
public Boolean sismember(String key, String member)
- Specified by:
sismember
in interfaceJedisClusterCommands
-
smismember
public List<Boolean> smismember(String key, String... members)
- Specified by:
smismember
in interfaceJedisClusterCommands
-
srandmember
public String srandmember(String key)
- Specified by:
srandmember
in interfaceJedisClusterCommands
-
srandmember
public List<String> srandmember(String key, int count)
- Specified by:
srandmember
in interfaceJedisClusterCommands
-
strlen
public Long strlen(String key)
- Specified by:
strlen
in interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, double score, String member)
- Specified by:
zadd
in interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, double score, String member, ZAddParams params)
- Specified by:
zadd
in interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers)
- Specified by:
zadd
in interfaceJedisClusterCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
- Specified by:
zadd
in interfaceJedisClusterCommands
-
zrange
public Set<String> zrange(String key, long start, long stop)
- Specified by:
zrange
in interfaceJedisClusterCommands
-
zrem
public Long zrem(String key, String... members)
- Specified by:
zrem
in interfaceJedisClusterCommands
-
zincrby
public Double zincrby(String key, double increment, String member)
- Specified by:
zincrby
in interfaceJedisClusterCommands
-
zincrby
public Double zincrby(String key, double increment, String member, ZIncrByParams params)
- Specified by:
zincrby
in interfaceJedisClusterCommands
-
zrank
public Long zrank(String key, String member)
- Specified by:
zrank
in interfaceJedisClusterCommands
-
zrevrank
public Long zrevrank(String key, String member)
- Specified by:
zrevrank
in interfaceJedisClusterCommands
-
zrevrange
public Set<String> zrevrange(String key, long start, long stop)
- Specified by:
zrevrange
in interfaceJedisClusterCommands
-
zrangeWithScores
public Set<Tuple> zrangeWithScores(String key, long start, long stop)
- Specified by:
zrangeWithScores
in interfaceJedisClusterCommands
-
zrevrangeWithScores
public Set<Tuple> zrevrangeWithScores(String key, long start, long stop)
- Specified by:
zrevrangeWithScores
in interfaceJedisClusterCommands
-
zcard
public Long zcard(String key)
- Specified by:
zcard
in interfaceJedisClusterCommands
-
zscore
public Double zscore(String key, String member)
- Specified by:
zscore
in interfaceJedisClusterCommands
-
zmscore
public List<Double> zmscore(String key, String... members)
- Specified by:
zmscore
in interfaceJedisClusterCommands
-
zpopmax
public Tuple zpopmax(String key)
- Specified by:
zpopmax
in interfaceJedisClusterCommands
-
zpopmax
public Set<Tuple> zpopmax(String key, int count)
- Specified by:
zpopmax
in interfaceJedisClusterCommands
-
zpopmin
public Tuple zpopmin(String key)
- Specified by:
zpopmin
in interfaceJedisClusterCommands
-
zpopmin
public Set<Tuple> zpopmin(String key, int count)
- Specified by:
zpopmin
in interfaceJedisClusterCommands
-
sort
public List<String> sort(String key)
- Specified by:
sort
in interfaceJedisClusterCommands
-
sort
public List<String> sort(String key, SortingParams sortingParameters)
- Specified by:
sort
in interfaceJedisClusterCommands
-
zcount
public Long zcount(String key, double min, double max)
- Specified by:
zcount
in interfaceJedisClusterCommands
-
zcount
public Long zcount(String key, String min, String max)
- Specified by:
zcount
in interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max)
- Specified by:
zrangeByScore
in interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max)
- Specified by:
zrangeByScore
in interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min)
- Specified by:
zrevrangeByScore
in interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScore
in interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min)
- Specified by:
zrevrangeByScore
in interfaceJedisClusterCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScore
in interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScore
in interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max)
- Specified by:
zrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
- Specified by:
zrevrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScore
in interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max)
- Specified by:
zrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
- Specified by:
zrevrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScores
in interfaceJedisClusterCommands
-
zremrangeByRank
public Long zremrangeByRank(String key, long start, long stop)
- Specified by:
zremrangeByRank
in interfaceJedisClusterCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, double min, double max)
- Specified by:
zremrangeByScore
in interfaceJedisClusterCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, String min, String max)
- Specified by:
zremrangeByScore
in interfaceJedisClusterCommands
-
zlexcount
public Long zlexcount(String key, String min, String max)
- Specified by:
zlexcount
in interfaceJedisClusterCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max)
- Specified by:
zrangeByLex
in interfaceJedisClusterCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByLex
in interfaceJedisClusterCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min)
- Specified by:
zrevrangeByLex
in interfaceJedisClusterCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByLex
in interfaceJedisClusterCommands
-
zremrangeByLex
public Long zremrangeByLex(String key, String min, String max)
- Specified by:
zremrangeByLex
in interfaceJedisClusterCommands
-
linsert
public Long linsert(String key, ListPosition where, String pivot, String value)
- Specified by:
linsert
in interfaceJedisClusterCommands
-
lpushx
public Long lpushx(String key, String... string)
- Specified by:
lpushx
in interfaceJedisClusterCommands
-
rpushx
public Long rpushx(String key, String... string)
- Specified by:
rpushx
in interfaceJedisClusterCommands
-
del
public Long del(String key)
- Specified by:
del
in interfaceJedisClusterCommands
-
unlink
public Long unlink(String key)
- Specified by:
unlink
in interfaceJedisClusterCommands
-
unlink
public Long unlink(String... keys)
- Specified by:
unlink
in interfaceMultiKeyJedisClusterCommands
-
echo
public String echo(String string)
- Specified by:
echo
in interfaceJedisClusterCommands
-
bitcount
public Long bitcount(String key)
- Specified by:
bitcount
in interfaceJedisClusterCommands
-
bitcount
public Long bitcount(String key, long start, long end)
- Specified by:
bitcount
in interfaceJedisClusterCommands
-
keys
public Set<String> keys(String pattern)
- Specified by:
keys
in interfaceMultiKeyJedisClusterCommands
-
scan
public ScanResult<String> scan(String cursor, ScanParams params)
- Specified by:
scan
in interfaceMultiKeyJedisClusterCommands
-
hscan
public ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
- Specified by:
hscan
in interfaceJedisClusterCommands
-
sscan
public ScanResult<String> sscan(String key, String cursor)
- Specified by:
sscan
in interfaceJedisClusterCommands
-
zscan
public ScanResult<Tuple> zscan(String key, String cursor)
- Specified by:
zscan
in interfaceJedisClusterCommands
-
pfadd
public Long pfadd(String key, String... elements)
- Specified by:
pfadd
in interfaceJedisClusterCommands
-
pfcount
public long pfcount(String key)
- Specified by:
pfcount
in interfaceJedisClusterCommands
-
blpop
public List<String> blpop(int timeout, String key)
- Specified by:
blpop
in interfaceJedisClusterCommands
-
brpop
public List<String> brpop(int timeout, String key)
- Specified by:
brpop
in interfaceJedisClusterCommands
-
del
public Long del(String... keys)
- Specified by:
del
in interfaceMultiKeyJedisClusterCommands
-
blpop
public List<String> blpop(int timeout, String... keys)
- Specified by:
blpop
in interfaceMultiKeyJedisClusterCommands
-
brpop
public List<String> brpop(int timeout, String... keys)
- Specified by:
brpop
in interfaceMultiKeyJedisClusterCommands
-
mget
public List<String> mget(String... keys)
- Specified by:
mget
in interfaceMultiKeyJedisClusterCommands
-
mset
public String mset(String... keysvalues)
- Specified by:
mset
in interfaceMultiKeyJedisClusterCommands
-
msetnx
public Long msetnx(String... keysvalues)
- Specified by:
msetnx
in interfaceMultiKeyJedisClusterCommands
-
rename
public String rename(String oldkey, String newkey)
- Specified by:
rename
in interfaceMultiKeyJedisClusterCommands
-
renamenx
public Long renamenx(String oldkey, String newkey)
- Specified by:
renamenx
in interfaceMultiKeyJedisClusterCommands
-
rpoplpush
public String rpoplpush(String srckey, String dstkey)
- Specified by:
rpoplpush
in interfaceMultiKeyJedisClusterCommands
-
sdiff
public Set<String> sdiff(String... keys)
- Specified by:
sdiff
in interfaceMultiKeyJedisClusterCommands
-
sdiffstore
public Long sdiffstore(String dstkey, String... keys)
- Specified by:
sdiffstore
in interfaceMultiKeyJedisClusterCommands
-
sinter
public Set<String> sinter(String... keys)
- Specified by:
sinter
in interfaceMultiKeyJedisClusterCommands
-
sinterstore
public Long sinterstore(String dstkey, String... keys)
- Specified by:
sinterstore
in interfaceMultiKeyJedisClusterCommands
-
smove
public Long smove(String srckey, String dstkey, String member)
- Specified by:
smove
in interfaceMultiKeyJedisClusterCommands
-
sort
public Long sort(String key, SortingParams sortingParameters, String dstkey)
- Specified by:
sort
in interfaceMultiKeyJedisClusterCommands
-
sort
public Long sort(String key, String dstkey)
- Specified by:
sort
in interfaceMultiKeyJedisClusterCommands
-
sunion
public Set<String> sunion(String... keys)
- Specified by:
sunion
in interfaceMultiKeyJedisClusterCommands
-
sunionstore
public Long sunionstore(String dstkey, String... keys)
- Specified by:
sunionstore
in interfaceMultiKeyJedisClusterCommands
-
zinterstore
public Long zinterstore(String dstkey, String... sets)
- Specified by:
zinterstore
in interfaceMultiKeyJedisClusterCommands
-
zinterstore
public Long zinterstore(String dstkey, ZParams params, String... sets)
- Specified by:
zinterstore
in interfaceMultiKeyJedisClusterCommands
-
zunionstore
public Long zunionstore(String dstkey, String... sets)
- Specified by:
zunionstore
in interfaceMultiKeyJedisClusterCommands
-
zunionstore
public Long zunionstore(String dstkey, ZParams params, String... sets)
- Specified by:
zunionstore
in interfaceMultiKeyJedisClusterCommands
-
brpoplpush
public String brpoplpush(String source, String destination, int timeout)
- Specified by:
brpoplpush
in interfaceMultiKeyJedisClusterCommands
-
publish
public Long publish(String channel, String message)
- Specified by:
publish
in interfaceMultiKeyJedisClusterCommands
-
subscribe
public void subscribe(JedisPubSub jedisPubSub, String... channels)
- Specified by:
subscribe
in interfaceMultiKeyJedisClusterCommands
-
psubscribe
public void psubscribe(JedisPubSub jedisPubSub, String... patterns)
- Specified by:
psubscribe
in interfaceMultiKeyJedisClusterCommands
-
bitop
public Long bitop(BitOP op, String destKey, String... srcKeys)
- Specified by:
bitop
in interfaceMultiKeyJedisClusterCommands
-
pfmerge
public String pfmerge(String destkey, String... sourcekeys)
- Specified by:
pfmerge
in interfaceMultiKeyJedisClusterCommands
-
pfcount
public long pfcount(String... keys)
- Specified by:
pfcount
in interfaceMultiKeyJedisClusterCommands
-
eval
public Object eval(String script, int keyCount, String... params)
- Specified by:
eval
in interfaceJedisClusterScriptingCommands
-
eval
public Object eval(String script, String sampleKey)
- Specified by:
eval
in interfaceJedisClusterScriptingCommands
sampleKey
- 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:
eval
in interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, int keyCount, String... params)
- Specified by:
evalsha
in interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, List<String> keys, List<String> args)
- Specified by:
evalsha
in interfaceJedisClusterScriptingCommands
-
evalsha
public Object evalsha(String sha1, String sampleKey)
- Specified by:
evalsha
in interfaceJedisClusterScriptingCommands
sampleKey
- 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:
scriptExists
in interfaceJedisClusterScriptingCommands
sampleKey
- 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:
scriptExists
in 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:
scriptLoad
in interfaceJedisClusterScriptingCommands
sampleKey
- 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:
scriptFlush
in 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:
scriptKill
in 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:
geoadd
in interfaceJedisClusterCommands
-
geoadd
public Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
- Specified by:
geoadd
in interfaceJedisClusterCommands
-
geodist
public Double geodist(String key, String member1, String member2)
- Specified by:
geodist
in interfaceJedisClusterCommands
-
geodist
public Double geodist(String key, String member1, String member2, GeoUnit unit)
- Specified by:
geodist
in interfaceJedisClusterCommands
-
geohash
public List<String> geohash(String key, String... members)
- Specified by:
geohash
in interfaceJedisClusterCommands
-
geopos
public List<GeoCoordinate> geopos(String key, String... members)
- Specified by:
geopos
in interfaceJedisClusterCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadius
in interfaceJedisClusterCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadiusReadonly
in interfaceJedisClusterCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadius
in interfaceJedisClusterCommands
-
georadiusStore
public Long georadiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusStore
in interfaceMultiKeyJedisClusterCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusReadonly
in interfaceJedisClusterCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMember
in interfaceJedisClusterCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMemberReadonly
in interfaceJedisClusterCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMember
in interfaceJedisClusterCommands
-
georadiusByMemberStore
public Long georadiusByMemberStore(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusByMemberStore
in interfaceMultiKeyJedisClusterCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMemberReadonly
in interfaceJedisClusterCommands
-
bitfield
public List<Long> bitfield(String key, String... arguments)
Description copied from interface:JedisClusterCommands
Executes BITFIELD Redis command- Specified by:
bitfield
in interfaceJedisClusterCommands
- Returns:
-
bitfieldReadonly
public List<Long> bitfieldReadonly(String key, String... arguments)
- Specified by:
bitfieldReadonly
in interfaceJedisClusterCommands
-
hstrlen
public Long hstrlen(String key, String field)
Description copied from interface:JedisClusterCommands
Used for HSTRLEN Redis command- Specified by:
hstrlen
in interfaceJedisClusterCommands
- Returns:
- lenth of the value for key
-
memoryUsage
public Long memoryUsage(String key)
Description copied from interface:JedisClusterCommands
MEMORY USAGE key- Specified by:
memoryUsage
in interfaceJedisClusterCommands
- Returns:
- the memory usage
-
memoryUsage
public Long memoryUsage(String key, int samples)
Description copied from interface:JedisClusterCommands
MEMORY USAGE key [SAMPLES count]- Specified by:
memoryUsage
in interfaceJedisClusterCommands
- Returns:
- the memory usage
-
xadd
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
Description copied from interface:JedisClusterCommands
XADD key ID field string [field string ...]- Specified by:
xadd
in 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:JedisClusterCommands
XADD key MAXLEN ~ LEN ID field string [field string ...]- Specified by:
xadd
in interfaceJedisClusterCommands
- Returns:
-
xlen
public Long xlen(String key)
Description copied from interface:JedisClusterCommands
XLEN key- Specified by:
xlen
in interfaceJedisClusterCommands
- Returns:
-
xrange
public List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
Description copied from interface:JedisClusterCommands
XRANGE key start end [COUNT count]- Specified by:
xrange
in interfaceJedisClusterCommands
- Returns:
-
xrevrange
public List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
Description copied from interface:JedisClusterCommands
XREVRANGE key end start [COUNT] - Specified by:
xrevrange
in interfaceJedisClusterCommands
- Returns:
-
xread
public List<Map.Entry<String,List<StreamEntry>>> xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)
Description copied from interface:MultiKeyJedisClusterCommands
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]- Specified by:
xread
in interfaceJedisClusterCommands
- Specified by:
xread
in interfaceMultiKeyJedisClusterCommands
- Returns:
-
xack
public Long xack(String key, String group, StreamEntryID... ids)
Description copied from interface:JedisClusterCommands
XACK key group ID [ID ...]- Specified by:
xack
in interfaceJedisClusterCommands
- Returns:
-
xgroupCreate
public String xgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)
Description copied from interface:JedisClusterCommands
XGROUP CREATE- Specified by:
xgroupCreate
in interfaceJedisClusterCommands
- Returns:
-
xgroupSetID
public String xgroupSetID(String key, String groupname, StreamEntryID id)
Description copied from interface:JedisClusterCommands
XGROUP SETID- Specified by:
xgroupSetID
in interfaceJedisClusterCommands
- Returns:
-
xgroupDestroy
public Long xgroupDestroy(String key, String groupname)
Description copied from interface:JedisClusterCommands
XGROUP DESTROY- Specified by:
xgroupDestroy
in interfaceJedisClusterCommands
- Returns:
-
xgroupDelConsumer
public Long xgroupDelConsumer(String key, String groupname, String consumername)
Description copied from interface:JedisClusterCommands
XGROUP DELCONSUMER- Specified by:
xgroupDelConsumer
in 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:MultiKeyJedisClusterCommands
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]- Specified by:
xreadGroup
in interfaceJedisClusterCommands
- Specified by:
xreadGroup
in interfaceMultiKeyJedisClusterCommands
- Returns:
-
xpending
public List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
Description copied from interface:JedisClusterCommands
XPENDING key group [start end count] [consumer]- Specified by:
xpending
in interfaceJedisClusterCommands
- Returns:
-
xdel
public Long xdel(String key, StreamEntryID... ids)
Description copied from interface:JedisClusterCommands
XDEL key ID [ID ...]- Specified by:
xdel
in interfaceJedisClusterCommands
- Returns:
-
xtrim
public Long xtrim(String key, long maxLen, boolean approximateLength)
Description copied from interface:JedisClusterCommands
XTRIM key MAXLEN [~] count- Specified by:
xtrim
in 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:JedisClusterCommands
XCLAIM[IDLE ] [TIME ] [RETRYCOUNT ] [FORCE] [JUSTID] - Specified by:
xclaim
in interfaceJedisClusterCommands
-
waitReplicas
public Long waitReplicas(String key, int replicas, long timeout)
- Specified by:
waitReplicas
in interfaceJedisClusterCommands
-
sendCommand
public Object sendCommand(String sampleKey, ProtocolCommand cmd, String... args)
-
sendBlockingCommand
public Object sendBlockingCommand(String sampleKey, ProtocolCommand cmd, String... args)
-
-