public class JedisCluster extends BinaryJedisCluster implements JedisClusterCommands, MultiKeyJedisClusterCommands, JedisClusterScriptingCommands
connectionHandler, DEFAULT_MAX_ATTEMPTS, DEFAULT_TIMEOUT, HASHSLOTS, maxAttempts
Constructor and Description |
---|
JedisCluster(HostAndPort node) |
JedisCluster(HostAndPort node,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
JedisCluster(HostAndPort node,
int timeout) |
JedisCluster(HostAndPort node,
int timeout,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
JedisCluster(HostAndPort node,
int timeout,
int maxAttempts) |
JedisCluster(HostAndPort node,
int timeout,
int maxAttempts,
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 connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
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) |
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(Set<HostAndPort> nodes) |
JedisCluster(Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
int maxAttempts) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int timeout,
int maxAttempts,
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 connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
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) |
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) |
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
|
Long |
bitop(BitOP op,
String destKey,
String... srcKeys) |
List<String> |
blpop(int timeout,
String... keys) |
List<String> |
blpop(int 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) |
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,
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) |
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) |
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) |
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,
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 |
lpop(String key) |
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) |
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,
int ttl,
byte[] serializedValue) |
String |
rpop(String key) |
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) |
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 |
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) |
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) |
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,
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
|
Long |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
String |
xgroupCreate(String key,
String groupname,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
String |
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
|
List<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 [~] 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) |
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) |
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) |
append, bitcount, bitcount, bitfield, 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, georadiusReadonly, georadiusReadonly, 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, lpush, lpushx, lrange, lrem, lset, ltrim, mget, mset, msetnx, persist, pexpire, pexpireAt, pfadd, pfcount, pfcount, pfmerge, psetex, psubscribe, pttl, publish, rename, renamenx, restore, rpop, rpoplpush, rpush, rpushx, sadd, scan, scard, scriptExists, scriptFlush, scriptKill, scriptLoad, sdiff, sdiffstore, sendCommand, set, set, setbit, setbit, setex, setnx, setrange, sinter, sinterstore, sismember, smembers, 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, 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
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 poolConfig)
public JedisCluster(HostAndPort node, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(HostAndPort node, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
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)
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 poolConfig)
public JedisCluster(Set<HostAndPort> nodes, int timeout, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
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)
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 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, int ttl, byte[] serializedValue)
restore
in interface JedisClusterCommands
public Long expire(String key, int 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, int 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 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 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 String rpop(String key)
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 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 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 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 Long zcard(String key)
zcard
in interface JedisClusterCommands
public Double zscore(String key, String member)
zscore
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<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 List<String> blpop(int timeout, String key)
blpop
in interface JedisClusterCommands
public List<String> brpop(int timeout, String key)
brpop
in interface JedisClusterCommands
public Long del(String... keys)
del
in interface MultiKeyJedisClusterCommands
public List<String> blpop(int timeout, String... keys)
blpop
in interface MultiKeyJedisClusterCommands
public List<String> brpop(int timeout, String... keys)
brpop
in interface MultiKeyJedisClusterCommands
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 Long zinterstore(String dstkey, String... sets)
zinterstore
in interface MultiKeyJedisClusterCommands
public Long zinterstore(String dstkey, ZParams params, String... sets)
zinterstore
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 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 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 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 Long hstrlen(String key, String field)
JedisClusterCommands
hstrlen
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 Long xlen(String key)
JedisClusterCommands
xlen
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, int count)
JedisClusterCommands
xrevrange
in interface JedisClusterCommands
public List<Map.Entry<String,List<StreamEntry>>> xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)
JedisClusterCommands
xread
in interface JedisClusterCommands
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 String 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)
JedisClusterCommands
xreadGroup
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 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 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 Long waitReplicas(String key, int replicas, long timeout)
waitReplicas
in interface JedisClusterCommands
public Object sendCommand(String sampleKey, ProtocolCommand cmd, String... args)
sendCommand
in interface JedisClusterCommands
Copyright © 2019. All rights reserved.