public class JedisCluster extends BinaryJedisCluster implements JedisClusterCommands, MultiKeyJedisClusterCommands, JedisClusterScriptingCommands
connectionHandler, DEFAULT_MAX_ATTEMPTS, DEFAULT_TIMEOUT, HASHSLOTS, maxAttempts, maxTotalRetriesDuration
Constructor and Description |
---|
JedisCluster(HostAndPort node) |
JedisCluster(HostAndPort node,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int timeout) |
JedisCluster(HostAndPort node,
int timeout,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int timeout,
int maxAttempts) |
JedisCluster(HostAndPort node,
int timeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl) |
JedisCluster(HostAndPort node,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(HostAndPort node,
JedisClientConfig clientConfig,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> nodes) |
JedisCluster(Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
int maxAttempts) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int timeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> 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<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap,
Duration maxTotalRetriesDuration)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> 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<Jedis> poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisCluster(Set<HostAndPort> nodes,
JedisClientConfig clientConfig,
int maxAttempts,
Duration maxTotalRetriesDuration,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
JedisClientConfig clientConfig,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig) |
Modifier and Type | Method and 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 command
|
List<Long> |
bitfieldReadonly(String key,
String... arguments) |
Long |
bitop(BitOP op,
String destKey,
String... srcKeys) |
String |
blmove(String srcKey,
String dstKey,
ListDirection from,
ListDirection to,
double timeout) |
KeyedListElement |
blpop(double timeout,
String... keys) |
KeyedListElement |
blpop(double timeout,
String key) |
List<String> |
blpop(int timeout,
String... keys) |
List<String> |
blpop(int timeout,
String key) |
KeyedListElement |
brpop(double timeout,
String... keys) |
KeyedListElement |
brpop(double timeout,
String key) |
List<String> |
brpop(int timeout,
String... keys) |
List<String> |
brpop(int timeout,
String key) |
String |
brpoplpush(String source,
String destination,
int timeout) |
KeyedZSetElement |
bzpopmax(double timeout,
String... keys) |
KeyedZSetElement |
bzpopmin(double timeout,
String... keys) |
Boolean |
copy(String srcKey,
String dstKey,
boolean replace) |
Long |
decr(String key) |
Long |
decrBy(String key,
long decrement) |
Long |
del(String... keys) |
Long |
del(String key) |
byte[] |
dump(String key) |
String |
echo(String string) |
Object |
eval(String script,
int keyCount,
String... params) |
Object |
eval(String script,
List<String> keys,
List<String> args) |
Object |
eval(String script,
String sampleKey) |
Object |
evalsha(String sha1,
int keyCount,
String... params) |
Object |
evalsha(String sha1,
List<String> keys,
List<String> args) |
Object |
evalsha(String sha1,
String sampleKey) |
Long |
exists(String... keys) |
Boolean |
exists(String key) |
Long |
expire(String key,
long seconds) |
Long |
expireAt(String key,
long unixTime) |
Long |
geoadd(String key,
double longitude,
double latitude,
String member) |
Long |
geoadd(String key,
GeoAddParams params,
Map<String,GeoCoordinate> memberCoordinateMap) |
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 |
getDel(String key) |
String |
getEx(String key,
GetExParams params) |
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) |
String |
hrandfield(String key) |
List<String> |
hrandfield(String key,
long count) |
Map<String,String> |
hrandfieldWithValues(String key,
long count) |
ScanResult<Map.Entry<String,String>> |
hscan(String key,
String cursor) |
Long |
hset(String key,
Map<String,String> hash) |
Long |
hset(String key,
String field,
String value) |
Long |
hsetnx(String key,
String field,
String value) |
Long |
hstrlen(String key,
String field)
Used for HSTRLEN Redis command
|
List<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 |
lmove(String srcKey,
String dstKey,
ListDirection from,
ListDirection to) |
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 key
|
Long |
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... keys) |
long |
pfcount(String key) |
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,
long ttl,
byte[] serializedValue) |
String |
restore(String key,
long ttl,
byte[] serializedValue,
RestoreParams params) |
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) |
ScanResult<String> |
scan(String cursor,
ScanParams params,
String type) |
Long |
scard(String key) |
List<Boolean> |
scriptExists(String sampleKey,
String... sha1) |
Boolean |
scriptExists(String sha1,
String sampleKey) |
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,
long 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) |
List<String> |
sort(String key,
SortingParams sortingParameters) |
Long |
sort(String key,
SortingParams sortingParameters,
String dstkey) |
Long |
sort(String key,
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) |
LCSMatchResult |
strAlgoLCSKeys(String keyA,
String keyB,
StrAlgoLCSParams params) |
LCSMatchResult |
strAlgoLCSStrings(String strA,
String strB,
StrAlgoLCSParams params) |
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... keys) |
Long |
touch(String key) |
Long |
ttl(String key) |
String |
type(String key) |
Long |
unlink(String... keys) |
Long |
unlink(String key) |
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,
Map<String,String> hash,
XAddParams params)
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]
|
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 ...]
|
Map.Entry<StreamEntryID,List<StreamEntry>> |
xautoclaim(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params)
XAUTOCLAIM key group consumer min-idle-time start [COUNT count]
|
Map.Entry<StreamEntryID,List<StreamEntryID>> |
xautoclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params)
XAUTOCLAIM key group consumer min-idle-time start [COUNT count] JUSTID
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
StreamEntryID... ids)
XCLAIM
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids) |
List<StreamEntryID> |
xclaimJustId(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids) |
Long |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
String |
xgroupCreate(String key,
String groupname,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
Long |
xgroupDelConsumer(String key,
String groupname,
String consumername)
XGROUP DELCONSUMER
|
Long |
xgroupDestroy(String key,
String groupname)
XGROUP DESTROY
|
String |
xgroupSetID(String key,
String groupname,
StreamEntryID id)
XGROUP SETID
|
Long |
xlen(String key)
XLEN key
|
StreamPendingSummary |
xpending(String key,
String groupname)
XPENDING key group
|
List<StreamPendingEntry> |
xpending(String key,
String groupname,
StreamEntryID start,
StreamEntryID end,
int count,
String consumername)
XPENDING key group [start end count] [consumer]
|
List<StreamPendingEntry> |
xpending(String key,
String groupname,
XPendingParams params)
XPENDING key group [[IDLE min-idle-time] start end count [consumer]]
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end)
XRANGE key start end
|
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>>> |
xread(XReadParams xReadParams,
Map<String,StreamEntryID> streams) |
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<Map.Entry<String,List<StreamEntry>>> |
xreadGroup(String groupname,
String consumer,
XReadGroupParams xReadGroupParams,
Map<String,StreamEntryID> streams) |
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start)
XREVRANGE key end start
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count)
XREVRANGE key end start COUNT count
|
Long |
xtrim(String key,
long maxLen,
boolean approximateLength)
XTRIM key MAXLEN [~] count
|
Long |
xtrim(String key,
XTrimParams params)
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
|
Long |
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) |
Double |
zaddIncr(String key,
double score,
String member,
ZAddParams params) |
Long |
zcard(String key) |
Long |
zcount(String key,
double min,
double max) |
Long |
zcount(String key,
String min,
String max) |
Set<String> |
zdiff(String... keys) |
Long |
zdiffStore(String dstkey,
String... keys) |
Set<Tuple> |
zdiffWithScores(String... keys) |
Double |
zincrby(String key,
double increment,
String member) |
Double |
zincrby(String key,
double increment,
String member,
ZIncrByParams params) |
Set<String> |
zinter(ZParams params,
String... keys) |
Long |
zinterstore(String dstkey,
String... sets) |
Long |
zinterstore(String dstkey,
ZParams params,
String... sets) |
Set<Tuple> |
zinterWithScores(ZParams params,
String... keys) |
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) |
String |
zrandmember(String key) |
Set<String> |
zrandmember(String key,
long count) |
Set<Tuple> |
zrandmemberWithScores(String key,
long 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) |
Set<String> |
zunion(ZParams params,
String... keys) |
Long |
zunionstore(String dstkey,
String... sets) |
Long |
zunionstore(String dstkey,
ZParams params,
String... sets) |
Set<Tuple> |
zunionWithScores(ZParams params,
String... keys) |
append, bitcount, bitcount, bitfield, bitfieldReadonly, bitop, blmove, blpop, blpop, brpop, brpop, brpoplpush, bzpopmax, bzpopmin, close, copy, decr, decrBy, del, del, dump, echo, eval, eval, eval, eval, evalsha, evalsha, evalsha, exists, exists, expire, expireAt, geoadd, geoadd, geoadd, geodist, geodist, geohash, geopos, georadius, georadius, georadiusByMember, georadiusByMember, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusByMemberStore, georadiusReadonly, georadiusReadonly, georadiusStore, get, getbit, getClusterNodes, getConnectionFromSlot, getDel, getEx, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hincrByFloat, hkeys, hlen, hmget, hmset, hrandfield, hrandfield, hrandfieldWithValues, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, incr, incrBy, incrByFloat, keys, lindex, linsert, llen, lmove, 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, restore, rpop, rpop, rpoplpush, rpush, rpushx, sadd, scan, scan, scard, scriptExists, scriptFlush, 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, strAlgoLCSKeys, strAlgoLCSStrings, strlen, subscribe, substr, sunion, sunionstore, touch, touch, ttl, type, unlink, unlink, waitReplicas, xack, xadd, xadd, xautoclaim, xautoclaimJustId, xclaim, xclaim, xclaimJustId, xdel, xgroupCreate, xgroupDelConsumer, xgroupDestroy, xgroupSetID, xlen, xpending, xpending, xpending, xrange, xrange, xrange, xread, xread, xreadGroup, xreadGroup, xrevrange, xrevrange, xtrim, xtrim, zadd, zadd, zadd, zadd, zaddIncr, zcard, zcount, zcount, zdiff, zdiffStore, zdiffWithScores, zincrby, zincrby, zinter, zinterstore, zinterstore, zinterWithScores, zlexcount, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrandmember, zrandmember, zrandmemberWithScores, 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, zunion, zunionstore, zunionstore, zunionWithScores
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
expire, restore, setex
restore, setex
public JedisCluster(HostAndPort node)
public JedisCluster(HostAndPort node, int timeout)
public JedisCluster(HostAndPort node, int timeout, int maxAttempts)
public JedisCluster(HostAndPort node, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl)
@Deprecated public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
@Deprecated public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
public JedisCluster(HostAndPort node, JedisClientConfig clientConfig, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> nodes)
public JedisCluster(Set<HostAndPort> nodes, int timeout)
public JedisCluster(Set<HostAndPort> nodes, int timeout, int maxAttempts)
public JedisCluster(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> nodes, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
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<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl)
@Deprecated public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
@Deprecated public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int infiniteSoTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
@Deprecated public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
@Deprecated 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<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
@Deprecated 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<Jedis> poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap, Duration maxTotalRetriesDuration)
maxTotalRetriesDuration
- After this amount of time we will do no more retries and report
the operation as failed.public JedisCluster(Set<HostAndPort> nodes, JedisClientConfig clientConfig, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public JedisCluster(Set<HostAndPort> nodes, JedisClientConfig clientConfig, int maxAttempts, Duration maxTotalRetriesDuration, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig)
public Boolean copy(String srcKey, String dstKey, boolean replace)
copy
in interface MultiKeyJedisClusterCommands
public String set(String key, String value)
set
in interface JedisClusterCommands
public String set(String key, String value, SetParams params)
set
in interface JedisClusterCommands
public String get(String key)
get
in interface JedisClusterCommands
public String getDel(String key)
getDel
in interface JedisClusterCommands
public String getEx(String key, GetExParams params)
getEx
in interface JedisClusterCommands
public Boolean exists(String key)
exists
in interface JedisClusterCommands
public Long exists(String... keys)
exists
in interface MultiKeyJedisClusterCommands
public Long persist(String key)
persist
in interface JedisClusterCommands
public String type(String key)
type
in interface JedisClusterCommands
public byte[] dump(String key)
dump
in interface JedisClusterCommands
public String restore(String key, long ttl, byte[] serializedValue)
restore
in interface JedisClusterCommands
public String restore(String key, long ttl, byte[] serializedValue, RestoreParams params)
restore
in interface JedisClusterCommands
public Long expire(String key, long seconds)
expire
in interface JedisClusterCommands
public Long pexpire(String key, long milliseconds)
pexpire
in interface JedisClusterCommands
public Long expireAt(String key, long unixTime)
expireAt
in interface JedisClusterCommands
public Long pexpireAt(String key, long millisecondsTimestamp)
pexpireAt
in interface JedisClusterCommands
public Long ttl(String key)
ttl
in interface JedisClusterCommands
public Long pttl(String key)
pttl
in interface JedisClusterCommands
public Long touch(String key)
touch
in interface JedisClusterCommands
public Long touch(String... keys)
touch
in interface MultiKeyJedisClusterCommands
public Boolean setbit(String key, long offset, boolean value)
setbit
in interface JedisClusterCommands
public Boolean setbit(String key, long offset, String value)
setbit
in interface JedisClusterCommands
public Boolean getbit(String key, long offset)
getbit
in interface JedisClusterCommands
public Long setrange(String key, long offset, String value)
setrange
in interface JedisClusterCommands
public String getrange(String key, long startOffset, long endOffset)
getrange
in interface JedisClusterCommands
public String getSet(String key, String value)
getSet
in interface JedisClusterCommands
public Long setnx(String key, String value)
setnx
in interface JedisClusterCommands
public String setex(String key, long seconds, String value)
setex
in interface JedisClusterCommands
public String psetex(String key, long milliseconds, String value)
psetex
in interface JedisClusterCommands
public Long decrBy(String key, long decrement)
decrBy
in interface JedisClusterCommands
public Long decr(String key)
decr
in interface JedisClusterCommands
public Long incrBy(String key, long increment)
incrBy
in interface JedisClusterCommands
public Double incrByFloat(String key, double increment)
incrByFloat
in interface JedisClusterCommands
public Long incr(String key)
incr
in interface JedisClusterCommands
public Long append(String key, String value)
append
in interface JedisClusterCommands
public String substr(String key, int start, int end)
substr
in interface JedisClusterCommands
public Long hset(String key, String field, String value)
hset
in interface JedisClusterCommands
public Long hset(String key, Map<String,String> hash)
hset
in interface JedisClusterCommands
public String hget(String key, String field)
hget
in interface JedisClusterCommands
public Long hsetnx(String key, String field, String value)
hsetnx
in interface JedisClusterCommands
public String hmset(String key, Map<String,String> hash)
hmset
in interface JedisClusterCommands
public List<String> hmget(String key, String... fields)
hmget
in interface JedisClusterCommands
public Long hincrBy(String key, String field, long value)
hincrBy
in interface JedisClusterCommands
public Double hincrByFloat(String key, String field, double value)
hincrByFloat
in interface JedisClusterCommands
public Boolean hexists(String key, String field)
hexists
in interface JedisClusterCommands
public Long hdel(String key, String... field)
hdel
in interface JedisClusterCommands
public Long hlen(String key)
hlen
in interface JedisClusterCommands
public Set<String> hkeys(String key)
hkeys
in interface JedisClusterCommands
public List<String> hvals(String key)
hvals
in interface JedisClusterCommands
public Map<String,String> hgetAll(String key)
hgetAll
in interface JedisClusterCommands
public String hrandfield(String key)
hrandfield
in interface JedisClusterCommands
public List<String> hrandfield(String key, long count)
hrandfield
in interface JedisClusterCommands
public Map<String,String> hrandfieldWithValues(String key, long count)
hrandfieldWithValues
in interface JedisClusterCommands
public Long rpush(String key, String... string)
rpush
in interface JedisClusterCommands
public Long lpush(String key, String... string)
lpush
in interface JedisClusterCommands
public Long llen(String key)
llen
in interface JedisClusterCommands
public List<String> lrange(String key, long start, long stop)
lrange
in interface JedisClusterCommands
public String ltrim(String key, long start, long stop)
ltrim
in interface JedisClusterCommands
public String lindex(String key, long index)
lindex
in interface JedisClusterCommands
public String lset(String key, long index, String value)
lset
in interface JedisClusterCommands
public Long lrem(String key, long count, String value)
lrem
in interface JedisClusterCommands
public String lpop(String key)
lpop
in interface JedisClusterCommands
public List<String> lpop(String key, int count)
lpop
in interface JedisClusterCommands
public Long lpos(String key, String element)
lpos
in interface JedisClusterCommands
public Long lpos(String key, String element, LPosParams params)
lpos
in interface JedisClusterCommands
public List<Long> lpos(String key, String element, LPosParams params, long count)
lpos
in interface JedisClusterCommands
public String rpop(String key)
rpop
in interface JedisClusterCommands
public List<String> rpop(String key, int count)
rpop
in interface JedisClusterCommands
public Long sadd(String key, String... member)
sadd
in interface JedisClusterCommands
public Set<String> smembers(String key)
smembers
in interface JedisClusterCommands
public Long srem(String key, String... member)
srem
in interface JedisClusterCommands
public String spop(String key)
spop
in interface JedisClusterCommands
public Set<String> spop(String key, long count)
spop
in interface JedisClusterCommands
public Long scard(String key)
scard
in interface JedisClusterCommands
public Boolean sismember(String key, String member)
sismember
in interface JedisClusterCommands
public List<Boolean> smismember(String key, String... members)
smismember
in interface JedisClusterCommands
public String srandmember(String key)
srandmember
in interface JedisClusterCommands
public List<String> srandmember(String key, int count)
srandmember
in interface JedisClusterCommands
public Long strlen(String key)
strlen
in interface JedisClusterCommands
public LCSMatchResult strAlgoLCSKeys(String keyA, String keyB, StrAlgoLCSParams params)
strAlgoLCSKeys
in interface MultiKeyJedisClusterCommands
public LCSMatchResult strAlgoLCSStrings(String strA, String strB, StrAlgoLCSParams params)
strAlgoLCSStrings
in interface MultiKeyJedisClusterCommands
public Long zadd(String key, double score, String member)
zadd
in interface JedisClusterCommands
public Long zadd(String key, double score, String member, ZAddParams params)
zadd
in interface JedisClusterCommands
public Long zadd(String key, Map<String,Double> scoreMembers)
zadd
in interface JedisClusterCommands
public Long zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
zadd
in interface JedisClusterCommands
public Double zaddIncr(String key, double score, String member, ZAddParams params)
zaddIncr
in interface JedisClusterCommands
public Set<String> zdiff(String... keys)
zdiff
in interface MultiKeyJedisClusterCommands
public Set<Tuple> zdiffWithScores(String... keys)
zdiffWithScores
in interface MultiKeyJedisClusterCommands
public Long zdiffStore(String dstkey, String... keys)
zdiffStore
in interface MultiKeyJedisClusterCommands
public Set<String> zrange(String key, long start, long stop)
zrange
in interface JedisClusterCommands
public Long zrem(String key, String... members)
zrem
in interface JedisClusterCommands
public Double zincrby(String key, double increment, String member)
zincrby
in interface JedisClusterCommands
public Double zincrby(String key, double increment, String member, ZIncrByParams params)
zincrby
in interface JedisClusterCommands
public Long zrank(String key, String member)
zrank
in interface JedisClusterCommands
public Long zrevrank(String key, String member)
zrevrank
in interface JedisClusterCommands
public Set<String> zrevrange(String key, long start, long stop)
zrevrange
in interface JedisClusterCommands
public Set<Tuple> zrangeWithScores(String key, long start, long stop)
zrangeWithScores
in interface JedisClusterCommands
public Set<Tuple> zrevrangeWithScores(String key, long start, long stop)
zrevrangeWithScores
in interface JedisClusterCommands
public String zrandmember(String key)
zrandmember
in interface JedisClusterCommands
public Set<String> zrandmember(String key, long count)
zrandmember
in interface JedisClusterCommands
public Set<Tuple> zrandmemberWithScores(String key, long count)
zrandmemberWithScores
in interface JedisClusterCommands
public Long zcard(String key)
zcard
in interface JedisClusterCommands
public Double zscore(String key, String member)
zscore
in interface JedisClusterCommands
public List<Double> zmscore(String key, String... members)
zmscore
in interface JedisClusterCommands
public Tuple zpopmax(String key)
zpopmax
in interface JedisClusterCommands
public Set<Tuple> zpopmax(String key, int count)
zpopmax
in interface JedisClusterCommands
public Tuple zpopmin(String key)
zpopmin
in interface JedisClusterCommands
public Set<Tuple> zpopmin(String key, int count)
zpopmin
in interface JedisClusterCommands
public List<String> sort(String key)
sort
in interface JedisClusterCommands
public List<String> sort(String key, SortingParams sortingParameters)
sort
in interface JedisClusterCommands
public Long zcount(String key, double min, double max)
zcount
in interface JedisClusterCommands
public Long zcount(String key, String min, String max)
zcount
in interface JedisClusterCommands
public Set<String> zrangeByScore(String key, double min, double max)
zrangeByScore
in interface JedisClusterCommands
public Set<String> zrangeByScore(String key, String min, String max)
zrangeByScore
in interface JedisClusterCommands
public Set<String> zrevrangeByScore(String key, double max, double min)
zrevrangeByScore
in interface JedisClusterCommands
public Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
zrangeByScore
in interface JedisClusterCommands
public Set<String> zrevrangeByScore(String key, String max, String min)
zrevrangeByScore
in interface JedisClusterCommands
public Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
zrangeByScore
in interface JedisClusterCommands
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
zrevrangeByScore
in interface JedisClusterCommands
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max)
zrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
zrevrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
zrangeByScoreWithScores
in interface JedisClusterCommands
public Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
zrevrangeByScore
in interface JedisClusterCommands
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max)
zrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
zrevrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
zrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
zrevrangeByScoreWithScores
in interface JedisClusterCommands
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
zrevrangeByScoreWithScores
in interface JedisClusterCommands
public Long zremrangeByRank(String key, long start, long stop)
zremrangeByRank
in interface JedisClusterCommands
public Long zremrangeByScore(String key, double min, double max)
zremrangeByScore
in interface JedisClusterCommands
public Long zremrangeByScore(String key, String min, String max)
zremrangeByScore
in interface JedisClusterCommands
public Long zlexcount(String key, String min, String max)
zlexcount
in interface JedisClusterCommands
public Set<String> zrangeByLex(String key, String min, String max)
zrangeByLex
in interface JedisClusterCommands
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
zrangeByLex
in interface JedisClusterCommands
public Set<String> zrevrangeByLex(String key, String max, String min)
zrevrangeByLex
in interface JedisClusterCommands
public Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
zrevrangeByLex
in interface JedisClusterCommands
public Long zremrangeByLex(String key, String min, String max)
zremrangeByLex
in interface JedisClusterCommands
public Long linsert(String key, ListPosition where, String pivot, String value)
linsert
in interface JedisClusterCommands
public Long lpushx(String key, String... string)
lpushx
in interface JedisClusterCommands
public Long rpushx(String key, String... string)
rpushx
in interface JedisClusterCommands
public Long del(String key)
del
in interface JedisClusterCommands
public Long unlink(String key)
unlink
in interface JedisClusterCommands
public Long unlink(String... keys)
unlink
in interface MultiKeyJedisClusterCommands
public String echo(String string)
echo
in interface JedisClusterCommands
public Long bitcount(String key)
bitcount
in interface JedisClusterCommands
public Long bitcount(String key, long start, long end)
bitcount
in interface JedisClusterCommands
public Set<String> keys(String pattern)
keys
in interface MultiKeyJedisClusterCommands
public ScanResult<String> scan(String cursor, ScanParams params)
scan
in interface MultiKeyJedisClusterCommands
public ScanResult<String> scan(String cursor, ScanParams params, String type)
scan
in interface MultiKeyJedisClusterCommands
public ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
hscan
in interface JedisClusterCommands
public ScanResult<String> sscan(String key, String cursor)
sscan
in interface JedisClusterCommands
public ScanResult<Tuple> zscan(String key, String cursor)
zscan
in interface JedisClusterCommands
public Long pfadd(String key, String... elements)
pfadd
in interface JedisClusterCommands
public long pfcount(String key)
pfcount
in interface JedisClusterCommands
public Long del(String... keys)
del
in interface MultiKeyJedisClusterCommands
public String lmove(String srcKey, String dstKey, ListDirection from, ListDirection to)
lmove
in interface MultiKeyJedisClusterCommands
public String blmove(String srcKey, String dstKey, ListDirection from, ListDirection to, double timeout)
blmove
in interface MultiKeyJedisClusterCommands
public List<String> blpop(int timeout, String... keys)
blpop
in interface MultiKeyJedisClusterCommands
public KeyedListElement blpop(double timeout, String... keys)
blpop
in interface MultiKeyJedisClusterCommands
public List<String> brpop(int timeout, String... keys)
brpop
in interface MultiKeyJedisClusterCommands
public KeyedListElement brpop(double timeout, String... keys)
brpop
in interface MultiKeyJedisClusterCommands
public KeyedZSetElement bzpopmax(double timeout, String... keys)
bzpopmax
in interface MultiKeyJedisClusterCommands
public KeyedZSetElement bzpopmin(double timeout, String... keys)
bzpopmin
in interface MultiKeyJedisClusterCommands
public List<String> blpop(int timeout, String key)
blpop
in interface JedisClusterCommands
public KeyedListElement blpop(double timeout, String key)
blpop
in interface JedisClusterCommands
public List<String> brpop(int timeout, String key)
brpop
in interface JedisClusterCommands
public KeyedListElement brpop(double timeout, String key)
brpop
in interface JedisClusterCommands
public List<String> mget(String... keys)
mget
in interface MultiKeyJedisClusterCommands
public String mset(String... keysvalues)
mset
in interface MultiKeyJedisClusterCommands
public Long msetnx(String... keysvalues)
msetnx
in interface MultiKeyJedisClusterCommands
public String rename(String oldkey, String newkey)
rename
in interface MultiKeyJedisClusterCommands
public Long renamenx(String oldkey, String newkey)
renamenx
in interface MultiKeyJedisClusterCommands
public String rpoplpush(String srckey, String dstkey)
rpoplpush
in interface MultiKeyJedisClusterCommands
public Set<String> sdiff(String... keys)
sdiff
in interface MultiKeyJedisClusterCommands
public Long sdiffstore(String dstkey, String... keys)
sdiffstore
in interface MultiKeyJedisClusterCommands
public Set<String> sinter(String... keys)
sinter
in interface MultiKeyJedisClusterCommands
public Long sinterstore(String dstkey, String... keys)
sinterstore
in interface MultiKeyJedisClusterCommands
public Long smove(String srckey, String dstkey, String member)
smove
in interface MultiKeyJedisClusterCommands
public Long sort(String key, SortingParams sortingParameters, String dstkey)
sort
in interface MultiKeyJedisClusterCommands
public Long sort(String key, String dstkey)
sort
in interface MultiKeyJedisClusterCommands
public Set<String> sunion(String... keys)
sunion
in interface MultiKeyJedisClusterCommands
public Long sunionstore(String dstkey, String... keys)
sunionstore
in interface MultiKeyJedisClusterCommands
public Set<String> zinter(ZParams params, String... keys)
zinter
in interface MultiKeyJedisClusterCommands
public Set<Tuple> zinterWithScores(ZParams params, String... keys)
zinterWithScores
in interface MultiKeyJedisClusterCommands
public Long zinterstore(String dstkey, String... sets)
zinterstore
in interface MultiKeyJedisClusterCommands
public Long zinterstore(String dstkey, ZParams params, String... sets)
zinterstore
in interface MultiKeyJedisClusterCommands
public Set<String> zunion(ZParams params, String... keys)
zunion
in interface MultiKeyJedisClusterCommands
public Set<Tuple> zunionWithScores(ZParams params, String... keys)
zunionWithScores
in interface MultiKeyJedisClusterCommands
public Long zunionstore(String dstkey, String... sets)
zunionstore
in interface MultiKeyJedisClusterCommands
public Long zunionstore(String dstkey, ZParams params, String... sets)
zunionstore
in interface MultiKeyJedisClusterCommands
public String brpoplpush(String source, String destination, int timeout)
brpoplpush
in interface MultiKeyJedisClusterCommands
public Long publish(String channel, String message)
publish
in interface MultiKeyJedisClusterCommands
public void subscribe(JedisPubSub jedisPubSub, String... channels)
subscribe
in interface MultiKeyJedisClusterCommands
public void psubscribe(JedisPubSub jedisPubSub, String... patterns)
psubscribe
in interface MultiKeyJedisClusterCommands
public Long bitop(BitOP op, String destKey, String... srcKeys)
bitop
in interface MultiKeyJedisClusterCommands
public String pfmerge(String destkey, String... sourcekeys)
pfmerge
in interface MultiKeyJedisClusterCommands
public long pfcount(String... keys)
pfcount
in interface MultiKeyJedisClusterCommands
public Object eval(String script, int keyCount, String... params)
eval
in interface JedisClusterScriptingCommands
public Object eval(String script, String sampleKey)
eval
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic Object eval(String script, List<String> keys, List<String> args)
eval
in interface JedisClusterScriptingCommands
public Object evalsha(String sha1, int keyCount, String... params)
evalsha
in interface JedisClusterScriptingCommands
public Object evalsha(String sha1, List<String> keys, List<String> args)
evalsha
in interface JedisClusterScriptingCommands
public Object evalsha(String sha1, String sampleKey)
evalsha
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic Boolean scriptExists(String sha1, String sampleKey)
scriptExists
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic List<Boolean> scriptExists(String sampleKey, String... sha1)
scriptExists
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic String scriptLoad(String script, String sampleKey)
scriptLoad
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic String scriptFlush(String sampleKey)
scriptFlush
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic String scriptKill(String sampleKey)
scriptKill
in interface JedisClusterScriptingCommands
sampleKey
- Command will be executed in the node where the hash slot of this key is
assigned topublic Long geoadd(String key, double longitude, double latitude, String member)
geoadd
in interface JedisClusterCommands
public Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
geoadd
in interface JedisClusterCommands
public Long geoadd(String key, GeoAddParams params, Map<String,GeoCoordinate> memberCoordinateMap)
geoadd
in interface JedisClusterCommands
public Double geodist(String key, String member1, String member2)
geodist
in interface JedisClusterCommands
public Double geodist(String key, String member1, String member2, GeoUnit unit)
geodist
in interface JedisClusterCommands
public List<String> geohash(String key, String... members)
geohash
in interface JedisClusterCommands
public List<GeoCoordinate> geopos(String key, String... members)
geopos
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
georadius
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)
georadiusReadonly
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadius
in interface JedisClusterCommands
public Long georadiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
georadiusStore
in interface MultiKeyJedisClusterCommands
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusReadonly
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit)
georadiusByMember
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)
georadiusByMemberReadonly
in interface JedisClusterCommands
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMember
in interface JedisClusterCommands
public Long georadiusByMemberStore(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
georadiusByMemberStore
in interface MultiKeyJedisClusterCommands
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMemberReadonly
in interface JedisClusterCommands
public List<Long> bitfield(String key, String... arguments)
JedisClusterCommands
bitfield
in interface JedisClusterCommands
public List<Long> bitfieldReadonly(String key, String... arguments)
bitfieldReadonly
in interface JedisClusterCommands
public Long hstrlen(String key, String field)
JedisClusterCommands
hstrlen
in interface JedisClusterCommands
public Long memoryUsage(String key)
JedisClusterCommands
memoryUsage
in interface JedisClusterCommands
public Long memoryUsage(String key, int samples)
JedisClusterCommands
memoryUsage
in interface JedisClusterCommands
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
JedisClusterCommands
xadd
in interface JedisClusterCommands
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
JedisClusterCommands
xadd
in interface JedisClusterCommands
public StreamEntryID xadd(String key, Map<String,String> hash, XAddParams params)
JedisClusterCommands
xadd
in interface JedisClusterCommands
public Long xlen(String key)
JedisClusterCommands
xlen
in interface JedisClusterCommands
public List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end)
JedisClusterCommands
xrange
in interface JedisClusterCommands
public List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
JedisClusterCommands
xrange
in interface JedisClusterCommands
public List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start)
JedisClusterCommands
xrevrange
in interface JedisClusterCommands
public List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
JedisClusterCommands
xrevrange
in interface JedisClusterCommands
public List<Map.Entry<String,List<StreamEntry>>> xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)
MultiKeyJedisClusterCommands
xread
in interface JedisClusterCommands
xread
in interface MultiKeyJedisClusterCommands
public List<Map.Entry<String,List<StreamEntry>>> xread(XReadParams xReadParams, Map<String,StreamEntryID> streams)
xread
in interface MultiKeyJedisClusterCommands
public Long xack(String key, String group, StreamEntryID... ids)
JedisClusterCommands
xack
in interface JedisClusterCommands
public String xgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)
JedisClusterCommands
xgroupCreate
in interface JedisClusterCommands
public String xgroupSetID(String key, String groupname, StreamEntryID id)
JedisClusterCommands
xgroupSetID
in interface JedisClusterCommands
public Long xgroupDestroy(String key, String groupname)
JedisClusterCommands
xgroupDestroy
in interface JedisClusterCommands
public Long xgroupDelConsumer(String key, String groupname, String consumername)
JedisClusterCommands
xgroupDelConsumer
in interface JedisClusterCommands
public List<Map.Entry<String,List<StreamEntry>>> xreadGroup(String groupname, String consumer, int count, long block, boolean noAck, Map.Entry<String,StreamEntryID>... streams)
MultiKeyJedisClusterCommands
xreadGroup
in interface JedisClusterCommands
xreadGroup
in interface MultiKeyJedisClusterCommands
public List<Map.Entry<String,List<StreamEntry>>> xreadGroup(String groupname, String consumer, XReadGroupParams xReadGroupParams, Map<String,StreamEntryID> streams)
xreadGroup
in interface MultiKeyJedisClusterCommands
public StreamPendingSummary xpending(String key, String groupname)
JedisClusterCommands
xpending
in interface JedisClusterCommands
public List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
JedisClusterCommands
xpending
in interface JedisClusterCommands
public List<StreamPendingEntry> xpending(String key, String groupname, XPendingParams params)
JedisClusterCommands
xpending
in interface JedisClusterCommands
public Long xdel(String key, StreamEntryID... ids)
JedisClusterCommands
xdel
in interface JedisClusterCommands
public Long xtrim(String key, long maxLen, boolean approximateLength)
JedisClusterCommands
xtrim
in interface JedisClusterCommands
public Long xtrim(String key, XTrimParams params)
JedisClusterCommands
xtrim
in interface JedisClusterCommands
public List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
JedisClusterCommands
xclaim
in interface JedisClusterCommands
public List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
xclaim
in interface JedisClusterCommands
public List<StreamEntryID> xclaimJustId(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
xclaimJustId
in interface JedisClusterCommands
public Map.Entry<StreamEntryID,List<StreamEntry>> xautoclaim(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
JedisClusterCommands
xautoclaim
in interface JedisClusterCommands
key
- Stream Keygroup
- Consumer GroupconsumerName
- Consumer name to transfer the auto claimed entriesminIdleTime
- Entries pending more than minIdleTime will be transferred ownershipstart
- StreamEntryID
- Entries >= start will be transferred ownership, passing null
will indicate '-'params
- XAutoClaimParams
public Map.Entry<StreamEntryID,List<StreamEntryID>> xautoclaimJustId(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
JedisClusterCommands
xautoclaimJustId
in interface JedisClusterCommands
key
- Stream Keygroup
- Consumer GroupconsumerName
- Consumer name to transfer the auto claimed entriesminIdleTime
- Entries pending more than minIdleTime will be transferred ownershipstart
- StreamEntryID
- Entries >= start will be transferred ownership, passing null
will indicate '-'params
- XAutoClaimParams
public Long waitReplicas(String key, int replicas, long timeout)
waitReplicas
in interface JedisClusterCommands
public Object sendCommand(String sampleKey, ProtocolCommand cmd, String... args)
public Object sendBlockingCommand(String sampleKey, ProtocolCommand cmd, String... args)
Copyright © 2022. All rights reserved.