public class BinaryJedisCluster extends Object implements BinaryJedisClusterCommands, MultiKeyBinaryJedisClusterCommands, JedisClusterBinaryScriptingCommands, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected JedisClusterConnectionHandler |
connectionHandler |
protected static int |
DEFAULT_MAX_ATTEMPTS |
protected static int |
DEFAULT_TIMEOUT |
static int |
HASHSLOTS |
protected int |
maxAttempts |
| Constructor and Description |
|---|
BinaryJedisCluster(Set<HostAndPort> nodes) |
BinaryJedisCluster(Set<HostAndPort> nodes,
int timeout) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int timeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
boolean ssl) |
BinaryJedisCluster(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) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
boolean ssl) |
BinaryJedisCluster(Set<HostAndPort> jedisClusterNode,
int connectionTimeout,
int soTimeout,
int maxAttempts,
String user,
String password,
String clientName,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap) |
| Modifier and Type | Method and Description |
|---|---|
Long |
append(byte[] key,
byte[] value) |
Long |
bitcount(byte[] key) |
Long |
bitcount(byte[] key,
long start,
long end) |
List<Long> |
bitfield(byte[] key,
byte[]... arguments)
Executes BITFIELD Redis command
|
List<Long> |
bitfieldReadonly(byte[] key,
byte[]... arguments) |
Long |
bitop(BitOP op,
byte[] destKey,
byte[]... srcKeys) |
List<byte[]> |
blpop(int timeout,
byte[]... keys) |
List<byte[]> |
brpop(int timeout,
byte[]... keys) |
byte[] |
brpoplpush(byte[] source,
byte[] destination,
int timeout) |
void |
close() |
Long |
decr(byte[] key) |
Long |
decrBy(byte[] key,
long decrement) |
Long |
del(byte[]... keys) |
Long |
del(byte[] key) |
byte[] |
dump(byte[] key) |
byte[] |
echo(byte[] arg) |
Object |
eval(byte[] script,
byte[] sampleKey) |
Object |
eval(byte[] script,
byte[] keyCount,
byte[]... params) |
Object |
eval(byte[] script,
int keyCount,
byte[]... params) |
Object |
eval(byte[] script,
List<byte[]> keys,
List<byte[]> args) |
Object |
evalsha(byte[] sha1,
byte[] sampleKey) |
Object |
evalsha(byte[] sha1,
int keyCount,
byte[]... params) |
Object |
evalsha(byte[] sha1,
List<byte[]> keys,
List<byte[]> args) |
Long |
exists(byte[]... keys) |
Boolean |
exists(byte[] key) |
Long |
expire(byte[] key,
int seconds) |
Long |
expireAt(byte[] key,
long unixTime) |
Long |
geoadd(byte[] key,
double longitude,
double latitude,
byte[] member) |
Long |
geoadd(byte[] key,
Map<byte[],GeoCoordinate> memberCoordinateMap) |
Double |
geodist(byte[] key,
byte[] member1,
byte[] member2) |
Double |
geodist(byte[] key,
byte[] member1,
byte[] member2,
GeoUnit unit) |
List<byte[]> |
geohash(byte[] key,
byte[]... members) |
List<GeoCoordinate> |
geopos(byte[] key,
byte[]... members) |
List<GeoRadiusResponse> |
georadius(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadius(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(byte[] key,
byte[] member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusReadonly(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusReadonly(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
byte[] |
get(byte[] key) |
Boolean |
getbit(byte[] key,
long offset) |
Map<String,JedisPool> |
getClusterNodes() |
Jedis |
getConnectionFromSlot(int slot) |
byte[] |
getrange(byte[] key,
long startOffset,
long endOffset) |
byte[] |
getSet(byte[] key,
byte[] value) |
Long |
hdel(byte[] key,
byte[]... field) |
Boolean |
hexists(byte[] key,
byte[] field) |
byte[] |
hget(byte[] key,
byte[] field) |
Map<byte[],byte[]> |
hgetAll(byte[] key) |
Long |
hincrBy(byte[] key,
byte[] field,
long value) |
Double |
hincrByFloat(byte[] key,
byte[] field,
double value) |
Set<byte[]> |
hkeys(byte[] key) |
Long |
hlen(byte[] key) |
List<byte[]> |
hmget(byte[] key,
byte[]... fields) |
String |
hmset(byte[] key,
Map<byte[],byte[]> hash) |
ScanResult<Map.Entry<byte[],byte[]>> |
hscan(byte[] key,
byte[] cursor) |
ScanResult<Map.Entry<byte[],byte[]>> |
hscan(byte[] key,
byte[] cursor,
ScanParams params) |
Long |
hset(byte[] key,
byte[] field,
byte[] value) |
Long |
hset(byte[] key,
Map<byte[],byte[]> hash) |
Long |
hsetnx(byte[] key,
byte[] field,
byte[] value) |
Long |
hstrlen(byte[] key,
byte[] field)
Used for HSTRLEN Redis command
|
List<byte[]> |
hvals(byte[] key) |
Long |
incr(byte[] key) |
Long |
incrBy(byte[] key,
long increment) |
Double |
incrByFloat(byte[] key,
double increment) |
Set<byte[]> |
keys(byte[] pattern) |
byte[] |
lindex(byte[] key,
long index) |
Long |
linsert(byte[] key,
ListPosition where,
byte[] pivot,
byte[] value) |
Long |
llen(byte[] key) |
byte[] |
lpop(byte[] key) |
Long |
lpush(byte[] key,
byte[]... args) |
Long |
lpushx(byte[] key,
byte[]... arg) |
List<byte[]> |
lrange(byte[] key,
long start,
long stop) |
Long |
lrem(byte[] key,
long count,
byte[] value) |
String |
lset(byte[] key,
long index,
byte[] value) |
String |
ltrim(byte[] key,
long start,
long stop) |
List<byte[]> |
mget(byte[]... keys) |
String |
mset(byte[]... keysvalues) |
Long |
msetnx(byte[]... keysvalues) |
Long |
persist(byte[] key) |
Long |
pexpire(byte[] key,
long milliseconds) |
Long |
pexpireAt(byte[] key,
long millisecondsTimestamp) |
Long |
pfadd(byte[] key,
byte[]... elements) |
Long |
pfcount(byte[]... keys) |
long |
pfcount(byte[] key) |
String |
pfmerge(byte[] destkey,
byte[]... sourcekeys) |
String |
psetex(byte[] key,
long milliseconds,
byte[] value) |
void |
psubscribe(BinaryJedisPubSub jedisPubSub,
byte[]... patterns) |
Long |
pttl(byte[] key) |
Long |
publish(byte[] channel,
byte[] message) |
String |
rename(byte[] oldkey,
byte[] newkey) |
Long |
renamenx(byte[] oldkey,
byte[] newkey) |
String |
restore(byte[] key,
int ttl,
byte[] serializedValue) |
byte[] |
rpop(byte[] key) |
byte[] |
rpoplpush(byte[] srckey,
byte[] dstkey) |
Long |
rpush(byte[] key,
byte[]... args) |
Long |
rpushx(byte[] key,
byte[]... arg) |
Long |
sadd(byte[] key,
byte[]... member) |
ScanResult<byte[]> |
scan(byte[] cursor,
ScanParams params) |
Long |
scard(byte[] key) |
List<Long> |
scriptExists(byte[] sampleKey,
byte[]... sha1) |
String |
scriptFlush(byte[] sampleKey) |
String |
scriptKill(byte[] sampleKey) |
byte[] |
scriptLoad(byte[] script,
byte[] sampleKey) |
Set<byte[]> |
sdiff(byte[]... keys) |
Long |
sdiffstore(byte[] dstkey,
byte[]... keys) |
Object |
sendCommand(byte[] sampleKey,
ProtocolCommand cmd,
byte[]... args) |
String |
set(byte[] key,
byte[] value) |
String |
set(byte[] key,
byte[] value,
SetParams params) |
Boolean |
setbit(byte[] key,
long offset,
boolean value) |
Boolean |
setbit(byte[] key,
long offset,
byte[] value) |
String |
setex(byte[] key,
int seconds,
byte[] value) |
Long |
setnx(byte[] key,
byte[] value) |
Long |
setrange(byte[] key,
long offset,
byte[] value) |
Set<byte[]> |
sinter(byte[]... keys) |
Long |
sinterstore(byte[] dstkey,
byte[]... keys) |
Boolean |
sismember(byte[] key,
byte[] member) |
Set<byte[]> |
smembers(byte[] key) |
Long |
smove(byte[] srckey,
byte[] dstkey,
byte[] member) |
List<byte[]> |
sort(byte[] key) |
Long |
sort(byte[] key,
byte[] dstkey) |
List<byte[]> |
sort(byte[] key,
SortingParams sortingParameters) |
Long |
sort(byte[] key,
SortingParams sortingParameters,
byte[] dstkey) |
byte[] |
spop(byte[] key) |
Set<byte[]> |
spop(byte[] key,
long count) |
byte[] |
srandmember(byte[] key) |
List<byte[]> |
srandmember(byte[] key,
int count) |
Long |
srem(byte[] key,
byte[]... member) |
ScanResult<byte[]> |
sscan(byte[] key,
byte[] cursor) |
ScanResult<byte[]> |
sscan(byte[] key,
byte[] cursor,
ScanParams params) |
Long |
strlen(byte[] key) |
void |
subscribe(BinaryJedisPubSub jedisPubSub,
byte[]... channels) |
byte[] |
substr(byte[] key,
int start,
int end) |
Set<byte[]> |
sunion(byte[]... keys) |
Long |
sunionstore(byte[] dstkey,
byte[]... keys) |
Long |
touch(byte[]... keys) |
Long |
touch(byte[] key) |
Long |
ttl(byte[] key) |
String |
type(byte[] key) |
Long |
unlink(byte[]... keys) |
Long |
unlink(byte[] key) |
Long |
waitReplicas(byte[] key,
int replicas,
long timeout) |
Long |
xack(byte[] key,
byte[] group,
byte[]... ids) |
byte[] |
xadd(byte[] key,
byte[] id,
Map<byte[],byte[]> hash,
long maxLen,
boolean approximateLength) |
List<byte[]> |
xclaim(byte[] key,
byte[] groupname,
byte[] consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
byte[][] ids) |
Long |
xdel(byte[] key,
byte[]... ids) |
String |
xgroupCreate(byte[] key,
byte[] consumer,
byte[] id,
boolean makeStream) |
Long |
xgroupDelConsumer(byte[] key,
byte[] consumer,
byte[] consumerName) |
Long |
xgroupDestroy(byte[] key,
byte[] consumer) |
String |
xgroupSetID(byte[] key,
byte[] consumer,
byte[] id) |
Long |
xlen(byte[] key) |
List<byte[]> |
xpending(byte[] key,
byte[] groupname,
byte[] start,
byte[] end,
int count,
byte[] consumername) |
List<byte[]> |
xrange(byte[] key,
byte[] start,
byte[] end,
long count) |
List<byte[]> |
xread(int count,
long block,
Map<byte[],byte[]> streams) |
List<byte[]> |
xreadGroup(byte[] groupname,
byte[] consumer,
int count,
long block,
boolean noAck,
Map<byte[],byte[]> streams) |
List<byte[]> |
xrevrange(byte[] key,
byte[] end,
byte[] start,
int count) |
Long |
xtrim(byte[] key,
long maxLen,
boolean approximateLength) |
Long |
zadd(byte[] key,
double score,
byte[] member) |
Long |
zadd(byte[] key,
double score,
byte[] member,
ZAddParams params) |
Long |
zadd(byte[] key,
Map<byte[],Double> scoreMembers) |
Long |
zadd(byte[] key,
Map<byte[],Double> scoreMembers,
ZAddParams params) |
Long |
zcard(byte[] key) |
Long |
zcount(byte[] key,
byte[] min,
byte[] max) |
Long |
zcount(byte[] key,
double min,
double max) |
Double |
zincrby(byte[] key,
double increment,
byte[] member) |
Double |
zincrby(byte[] key,
double increment,
byte[] member,
ZIncrByParams params) |
Long |
zinterstore(byte[] dstkey,
byte[]... sets) |
Long |
zinterstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
Long |
zlexcount(byte[] key,
byte[] min,
byte[] max) |
Tuple |
zpopmax(byte[] key) |
Set<Tuple> |
zpopmax(byte[] key,
int count) |
Tuple |
zpopmin(byte[] key) |
Set<Tuple> |
zpopmin(byte[] key,
int count) |
Set<byte[]> |
zrange(byte[] key,
long start,
long stop) |
Set<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max) |
Set<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max) |
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max) |
Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count) |
Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max) |
Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max) |
Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count) |
Set<Tuple> |
zrangeWithScores(byte[] key,
long start,
long stop) |
Long |
zrank(byte[] key,
byte[] member) |
Long |
zrem(byte[] key,
byte[]... members) |
Long |
zremrangeByLex(byte[] key,
byte[] min,
byte[] max) |
Long |
zremrangeByRank(byte[] key,
long start,
long stop) |
Long |
zremrangeByScore(byte[] key,
byte[] min,
byte[] max) |
Long |
zremrangeByScore(byte[] key,
double min,
double max) |
Set<byte[]> |
zrevrange(byte[] key,
long start,
long stop) |
Set<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min) |
Set<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count) |
Set<Tuple> |
zrevrangeWithScores(byte[] key,
long start,
long stop) |
Long |
zrevrank(byte[] key,
byte[] member) |
ScanResult<Tuple> |
zscan(byte[] key,
byte[] cursor) |
ScanResult<Tuple> |
zscan(byte[] key,
byte[] cursor,
ScanParams params) |
Double |
zscore(byte[] key,
byte[] member) |
Long |
zunionstore(byte[] dstkey,
byte[]... sets) |
Long |
zunionstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
public static final int HASHSLOTS
protected static final int DEFAULT_TIMEOUT
protected static final int DEFAULT_MAX_ATTEMPTS
protected int maxAttempts
protected JedisClusterConnectionHandler connectionHandler
public BinaryJedisCluster(Set<HostAndPort> nodes)
public BinaryJedisCluster(Set<HostAndPort> nodes, int timeout)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl)
public BinaryJedisCluster(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 BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, String user, String password, String clientName, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Jedis getConnectionFromSlot(int slot)
public String set(byte[] key, byte[] value)
set in interface BinaryJedisClusterCommandspublic String set(byte[] key, byte[] value, SetParams params)
set in interface BinaryJedisClusterCommandspublic byte[] get(byte[] key)
get in interface BinaryJedisClusterCommandspublic Long exists(byte[]... keys)
exists in interface MultiKeyBinaryJedisClusterCommandspublic Boolean exists(byte[] key)
exists in interface BinaryJedisClusterCommandspublic Long persist(byte[] key)
persist in interface BinaryJedisClusterCommandspublic String type(byte[] key)
type in interface BinaryJedisClusterCommandspublic byte[] dump(byte[] key)
dump in interface BinaryJedisClusterCommandspublic String restore(byte[] key, int ttl, byte[] serializedValue)
restore in interface BinaryJedisClusterCommandspublic Long expire(byte[] key, int seconds)
expire in interface BinaryJedisClusterCommandspublic Long pexpire(byte[] key, long milliseconds)
pexpire in interface BinaryJedisClusterCommandspublic Long expireAt(byte[] key, long unixTime)
expireAt in interface BinaryJedisClusterCommandspublic Long pexpireAt(byte[] key, long millisecondsTimestamp)
pexpireAt in interface BinaryJedisClusterCommandspublic Long ttl(byte[] key)
ttl in interface BinaryJedisClusterCommandspublic Long pttl(byte[] key)
pttl in interface BinaryJedisClusterCommandspublic Long touch(byte[] key)
touch in interface BinaryJedisClusterCommandspublic Long touch(byte[]... keys)
touch in interface MultiKeyBinaryJedisClusterCommandspublic Boolean setbit(byte[] key, long offset, boolean value)
setbit in interface BinaryJedisClusterCommandspublic Boolean setbit(byte[] key, long offset, byte[] value)
setbit in interface BinaryJedisClusterCommandspublic Boolean getbit(byte[] key, long offset)
getbit in interface BinaryJedisClusterCommandspublic Long setrange(byte[] key, long offset, byte[] value)
setrange in interface BinaryJedisClusterCommandspublic byte[] getrange(byte[] key,
long startOffset,
long endOffset)
getrange in interface BinaryJedisClusterCommandspublic byte[] getSet(byte[] key,
byte[] value)
getSet in interface BinaryJedisClusterCommandspublic Long setnx(byte[] key, byte[] value)
setnx in interface BinaryJedisClusterCommandspublic String psetex(byte[] key, long milliseconds, byte[] value)
psetex in interface BinaryJedisClusterCommandspublic String setex(byte[] key, int seconds, byte[] value)
setex in interface BinaryJedisClusterCommandspublic Long decrBy(byte[] key, long decrement)
decrBy in interface BinaryJedisClusterCommandspublic Long decr(byte[] key)
decr in interface BinaryJedisClusterCommandspublic Long incrBy(byte[] key, long increment)
incrBy in interface BinaryJedisClusterCommandspublic Double incrByFloat(byte[] key, double increment)
incrByFloat in interface BinaryJedisClusterCommandspublic Long incr(byte[] key)
incr in interface BinaryJedisClusterCommandspublic Long append(byte[] key, byte[] value)
append in interface BinaryJedisClusterCommandspublic byte[] substr(byte[] key,
int start,
int end)
substr in interface BinaryJedisClusterCommandspublic Long hset(byte[] key, byte[] field, byte[] value)
hset in interface BinaryJedisClusterCommandspublic Long hset(byte[] key, Map<byte[],byte[]> hash)
hset in interface BinaryJedisClusterCommandspublic byte[] hget(byte[] key,
byte[] field)
hget in interface BinaryJedisClusterCommandspublic Long hsetnx(byte[] key, byte[] field, byte[] value)
hsetnx in interface BinaryJedisClusterCommandspublic String hmset(byte[] key, Map<byte[],byte[]> hash)
hmset in interface BinaryJedisClusterCommandspublic List<byte[]> hmget(byte[] key, byte[]... fields)
hmget in interface BinaryJedisClusterCommandspublic Long hincrBy(byte[] key, byte[] field, long value)
hincrBy in interface BinaryJedisClusterCommandspublic Double hincrByFloat(byte[] key, byte[] field, double value)
hincrByFloat in interface BinaryJedisClusterCommandspublic Boolean hexists(byte[] key, byte[] field)
hexists in interface BinaryJedisClusterCommandspublic Long hdel(byte[] key, byte[]... field)
hdel in interface BinaryJedisClusterCommandspublic Long hlen(byte[] key)
hlen in interface BinaryJedisClusterCommandspublic Set<byte[]> hkeys(byte[] key)
hkeys in interface BinaryJedisClusterCommandspublic List<byte[]> hvals(byte[] key)
hvals in interface BinaryJedisClusterCommandspublic Map<byte[],byte[]> hgetAll(byte[] key)
hgetAll in interface BinaryJedisClusterCommandspublic Long rpush(byte[] key, byte[]... args)
rpush in interface BinaryJedisClusterCommandspublic Long lpush(byte[] key, byte[]... args)
lpush in interface BinaryJedisClusterCommandspublic Long llen(byte[] key)
llen in interface BinaryJedisClusterCommandspublic List<byte[]> lrange(byte[] key, long start, long stop)
lrange in interface BinaryJedisClusterCommandspublic String ltrim(byte[] key, long start, long stop)
ltrim in interface BinaryJedisClusterCommandspublic byte[] lindex(byte[] key,
long index)
lindex in interface BinaryJedisClusterCommandspublic String lset(byte[] key, long index, byte[] value)
lset in interface BinaryJedisClusterCommandspublic Long lrem(byte[] key, long count, byte[] value)
lrem in interface BinaryJedisClusterCommandspublic byte[] lpop(byte[] key)
lpop in interface BinaryJedisClusterCommandspublic byte[] rpop(byte[] key)
rpop in interface BinaryJedisClusterCommandspublic Long sadd(byte[] key, byte[]... member)
sadd in interface BinaryJedisClusterCommandspublic Set<byte[]> smembers(byte[] key)
smembers in interface BinaryJedisClusterCommandspublic Long srem(byte[] key, byte[]... member)
srem in interface BinaryJedisClusterCommandspublic byte[] spop(byte[] key)
spop in interface BinaryJedisClusterCommandspublic Set<byte[]> spop(byte[] key, long count)
spop in interface BinaryJedisClusterCommandspublic Long scard(byte[] key)
scard in interface BinaryJedisClusterCommandspublic Boolean sismember(byte[] key, byte[] member)
sismember in interface BinaryJedisClusterCommandspublic byte[] srandmember(byte[] key)
srandmember in interface BinaryJedisClusterCommandspublic Long strlen(byte[] key)
strlen in interface BinaryJedisClusterCommandspublic Long zadd(byte[] key, double score, byte[] member)
zadd in interface BinaryJedisClusterCommandspublic Long zadd(byte[] key, double score, byte[] member, ZAddParams params)
zadd in interface BinaryJedisClusterCommandspublic Long zadd(byte[] key, Map<byte[],Double> scoreMembers)
zadd in interface BinaryJedisClusterCommandspublic Long zadd(byte[] key, Map<byte[],Double> scoreMembers, ZAddParams params)
zadd in interface BinaryJedisClusterCommandspublic Set<byte[]> zrange(byte[] key, long start, long stop)
zrange in interface BinaryJedisClusterCommandspublic Long zrem(byte[] key, byte[]... members)
zrem in interface BinaryJedisClusterCommandspublic Double zincrby(byte[] key, double increment, byte[] member)
zincrby in interface BinaryJedisClusterCommandspublic Double zincrby(byte[] key, double increment, byte[] member, ZIncrByParams params)
zincrby in interface BinaryJedisClusterCommandspublic Long zrank(byte[] key, byte[] member)
zrank in interface BinaryJedisClusterCommandspublic Long zrevrank(byte[] key, byte[] member)
zrevrank in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrange(byte[] key, long start, long stop)
zrevrange in interface BinaryJedisClusterCommandspublic Set<Tuple> zrangeWithScores(byte[] key, long start, long stop)
zrangeWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrevrangeWithScores(byte[] key, long start, long stop)
zrevrangeWithScores in interface BinaryJedisClusterCommandspublic Long zcard(byte[] key)
zcard in interface BinaryJedisClusterCommandspublic Double zscore(byte[] key, byte[] member)
zscore in interface BinaryJedisClusterCommandspublic Tuple zpopmax(byte[] key)
zpopmax in interface BinaryJedisClusterCommandspublic Set<Tuple> zpopmax(byte[] key, int count)
zpopmax in interface BinaryJedisClusterCommandspublic Tuple zpopmin(byte[] key)
zpopmin in interface BinaryJedisClusterCommandspublic Set<Tuple> zpopmin(byte[] key, int count)
zpopmin in interface BinaryJedisClusterCommandspublic List<byte[]> sort(byte[] key)
sort in interface BinaryJedisClusterCommandspublic List<byte[]> sort(byte[] key, SortingParams sortingParameters)
sort in interface BinaryJedisClusterCommandspublic Long zcount(byte[] key, double min, double max)
zcount in interface BinaryJedisClusterCommandspublic Long zcount(byte[] key, byte[] min, byte[] max)
zcount in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByScore(byte[] key, double min, double max)
zrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max)
zrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, double max, double min)
zrevrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByScore(byte[] key, double min, double max, int offset, int count)
zrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min)
zrevrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByScore in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count)
zrevrangeByScore in interface BinaryJedisClusterCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max)
zrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min)
zrevrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
zrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByScore in interface BinaryJedisClusterCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max)
zrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min)
zrevrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count)
zrevrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByScoreWithScores in interface BinaryJedisClusterCommandspublic Long zremrangeByRank(byte[] key, long start, long stop)
zremrangeByRank in interface BinaryJedisClusterCommandspublic Long zremrangeByScore(byte[] key, double min, double max)
zremrangeByScore in interface BinaryJedisClusterCommandspublic Long zremrangeByScore(byte[] key, byte[] min, byte[] max)
zremrangeByScore in interface BinaryJedisClusterCommandspublic Long linsert(byte[] key, ListPosition where, byte[] pivot, byte[] value)
linsert in interface BinaryJedisClusterCommandspublic Long lpushx(byte[] key, byte[]... arg)
lpushx in interface BinaryJedisClusterCommandspublic Long rpushx(byte[] key, byte[]... arg)
rpushx in interface BinaryJedisClusterCommandspublic Long del(byte[] key)
del in interface BinaryJedisClusterCommandspublic Long unlink(byte[] key)
unlink in interface BinaryJedisClusterCommandspublic Long unlink(byte[]... keys)
unlink in interface MultiKeyBinaryJedisClusterCommandspublic byte[] echo(byte[] arg)
echo in interface BinaryJedisClusterCommandspublic Long bitcount(byte[] key)
bitcount in interface BinaryJedisClusterCommandspublic Long bitcount(byte[] key, long start, long end)
bitcount in interface BinaryJedisClusterCommandspublic Long pfadd(byte[] key, byte[]... elements)
pfadd in interface BinaryJedisClusterCommandspublic long pfcount(byte[] key)
pfcount in interface BinaryJedisClusterCommandspublic List<byte[]> srandmember(byte[] key, int count)
srandmember in interface BinaryJedisClusterCommandspublic Long zlexcount(byte[] key, byte[] min, byte[] max)
zlexcount in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max)
zrangeByLex in interface BinaryJedisClusterCommandspublic Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByLex in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min)
zrevrangeByLex in interface BinaryJedisClusterCommandspublic Set<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByLex in interface BinaryJedisClusterCommandspublic Long zremrangeByLex(byte[] key, byte[] min, byte[] max)
zremrangeByLex in interface BinaryJedisClusterCommandspublic Object eval(byte[] script, byte[] keyCount, byte[]... params)
eval in interface JedisClusterBinaryScriptingCommandspublic Object eval(byte[] script, int keyCount, byte[]... params)
eval in interface JedisClusterBinaryScriptingCommandspublic Object eval(byte[] script, List<byte[]> keys, List<byte[]> args)
eval in interface JedisClusterBinaryScriptingCommandspublic Object eval(byte[] script, byte[] sampleKey)
eval in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic Object evalsha(byte[] sha1, byte[] sampleKey)
evalsha in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic Object evalsha(byte[] sha1, List<byte[]> keys, List<byte[]> args)
evalsha in interface JedisClusterBinaryScriptingCommandspublic Object evalsha(byte[] sha1, int keyCount, byte[]... params)
evalsha in interface JedisClusterBinaryScriptingCommandspublic List<Long> scriptExists(byte[] sampleKey, byte[]... sha1)
scriptExists in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic byte[] scriptLoad(byte[] script,
byte[] sampleKey)
scriptLoad in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic String scriptFlush(byte[] sampleKey)
scriptFlush in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic String scriptKill(byte[] sampleKey)
scriptKill in interface JedisClusterBinaryScriptingCommandssampleKey - Command will be executed in the node where the hash slot of this key is assigned topublic Long del(byte[]... keys)
del in interface MultiKeyBinaryJedisClusterCommandspublic List<byte[]> blpop(int timeout, byte[]... keys)
blpop in interface MultiKeyBinaryJedisClusterCommandspublic List<byte[]> brpop(int timeout, byte[]... keys)
brpop in interface MultiKeyBinaryJedisClusterCommandspublic List<byte[]> mget(byte[]... keys)
mget in interface MultiKeyBinaryJedisClusterCommandspublic String mset(byte[]... keysvalues)
mset in interface MultiKeyBinaryJedisClusterCommandspublic Long msetnx(byte[]... keysvalues)
msetnx in interface MultiKeyBinaryJedisClusterCommandspublic String rename(byte[] oldkey, byte[] newkey)
rename in interface MultiKeyBinaryJedisClusterCommandspublic Long renamenx(byte[] oldkey, byte[] newkey)
renamenx in interface MultiKeyBinaryJedisClusterCommandspublic byte[] rpoplpush(byte[] srckey,
byte[] dstkey)
rpoplpush in interface MultiKeyBinaryJedisClusterCommandspublic Set<byte[]> sdiff(byte[]... keys)
sdiff in interface MultiKeyBinaryJedisClusterCommandspublic Long sdiffstore(byte[] dstkey, byte[]... keys)
sdiffstore in interface MultiKeyBinaryJedisClusterCommandspublic Set<byte[]> sinter(byte[]... keys)
sinter in interface MultiKeyBinaryJedisClusterCommandspublic Long sinterstore(byte[] dstkey, byte[]... keys)
sinterstore in interface MultiKeyBinaryJedisClusterCommandspublic Long smove(byte[] srckey, byte[] dstkey, byte[] member)
smove in interface MultiKeyBinaryJedisClusterCommandspublic Long sort(byte[] key, SortingParams sortingParameters, byte[] dstkey)
sort in interface MultiKeyBinaryJedisClusterCommandspublic Long sort(byte[] key, byte[] dstkey)
sort in interface MultiKeyBinaryJedisClusterCommandspublic Set<byte[]> sunion(byte[]... keys)
sunion in interface MultiKeyBinaryJedisClusterCommandspublic Long sunionstore(byte[] dstkey, byte[]... keys)
sunionstore in interface MultiKeyBinaryJedisClusterCommandspublic Long zinterstore(byte[] dstkey, byte[]... sets)
zinterstore in interface MultiKeyBinaryJedisClusterCommandspublic Long zinterstore(byte[] dstkey, ZParams params, byte[]... sets)
zinterstore in interface MultiKeyBinaryJedisClusterCommandspublic Long zunionstore(byte[] dstkey, byte[]... sets)
zunionstore in interface MultiKeyBinaryJedisClusterCommandspublic Long zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
zunionstore in interface MultiKeyBinaryJedisClusterCommandspublic byte[] brpoplpush(byte[] source,
byte[] destination,
int timeout)
brpoplpush in interface MultiKeyBinaryJedisClusterCommandspublic Long publish(byte[] channel, byte[] message)
publish in interface MultiKeyBinaryJedisClusterCommandspublic void subscribe(BinaryJedisPubSub jedisPubSub, byte[]... channels)
subscribe in interface MultiKeyBinaryJedisClusterCommandspublic void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns)
psubscribe in interface MultiKeyBinaryJedisClusterCommandspublic Long bitop(BitOP op, byte[] destKey, byte[]... srcKeys)
bitop in interface MultiKeyBinaryJedisClusterCommandspublic String pfmerge(byte[] destkey, byte[]... sourcekeys)
pfmerge in interface MultiKeyBinaryJedisClusterCommandspublic Long pfcount(byte[]... keys)
pfcount in interface MultiKeyBinaryJedisClusterCommandspublic Long geoadd(byte[] key, double longitude, double latitude, byte[] member)
geoadd in interface BinaryJedisClusterCommandspublic Long geoadd(byte[] key, Map<byte[],GeoCoordinate> memberCoordinateMap)
geoadd in interface BinaryJedisClusterCommandspublic Double geodist(byte[] key, byte[] member1, byte[] member2)
geodist in interface BinaryJedisClusterCommandspublic Double geodist(byte[] key, byte[] member1, byte[] member2, GeoUnit unit)
geodist in interface BinaryJedisClusterCommandspublic List<byte[]> geohash(byte[] key, byte[]... members)
geohash in interface BinaryJedisClusterCommandspublic List<GeoCoordinate> geopos(byte[] key, byte[]... members)
geopos in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit)
georadius in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusReadonly(byte[] key, double longitude, double latitude, double radius, GeoUnit unit)
georadiusReadonly in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadius in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusReadonly(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusReadonly in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit)
georadiusByMember in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusByMemberReadonly(byte[] key, byte[] member, double radius, GeoUnit unit)
georadiusByMemberReadonly in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMember in interface BinaryJedisClusterCommandspublic List<GeoRadiusResponse> georadiusByMemberReadonly(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMemberReadonly in interface BinaryJedisClusterCommandspublic Set<byte[]> keys(byte[] pattern)
keys in interface MultiKeyBinaryJedisClusterCommandspublic ScanResult<byte[]> scan(byte[] cursor, ScanParams params)
scan in interface MultiKeyBinaryJedisClusterCommandspublic ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor)
hscan in interface BinaryJedisClusterCommandspublic ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, ScanParams params)
hscan in interface BinaryJedisClusterCommandspublic ScanResult<byte[]> sscan(byte[] key, byte[] cursor)
sscan in interface BinaryJedisClusterCommandspublic ScanResult<byte[]> sscan(byte[] key, byte[] cursor, ScanParams params)
sscan in interface BinaryJedisClusterCommandspublic ScanResult<Tuple> zscan(byte[] key, byte[] cursor)
zscan in interface BinaryJedisClusterCommandspublic ScanResult<Tuple> zscan(byte[] key, byte[] cursor, ScanParams params)
zscan in interface BinaryJedisClusterCommandspublic List<Long> bitfield(byte[] key, byte[]... arguments)
BinaryJedisClusterCommandsbitfield in interface BinaryJedisClusterCommandspublic List<Long> bitfieldReadonly(byte[] key, byte[]... arguments)
bitfieldReadonly in interface BinaryJedisClusterCommandspublic Long hstrlen(byte[] key, byte[] field)
BinaryJedisClusterCommandshstrlen in interface BinaryJedisClusterCommandspublic byte[] xadd(byte[] key,
byte[] id,
Map<byte[],byte[]> hash,
long maxLen,
boolean approximateLength)
xadd in interface BinaryJedisClusterCommandspublic Long xlen(byte[] key)
xlen in interface BinaryJedisClusterCommandspublic List<byte[]> xrange(byte[] key, byte[] start, byte[] end, long count)
xrange in interface BinaryJedisClusterCommandspublic List<byte[]> xrevrange(byte[] key, byte[] end, byte[] start, int count)
xrevrange in interface BinaryJedisClusterCommandspublic List<byte[]> xread(int count, long block, Map<byte[],byte[]> streams)
xread in interface MultiKeyBinaryJedisClusterCommandspublic Long xack(byte[] key, byte[] group, byte[]... ids)
xack in interface BinaryJedisClusterCommandspublic String xgroupCreate(byte[] key, byte[] consumer, byte[] id, boolean makeStream)
xgroupCreate in interface BinaryJedisClusterCommandspublic String xgroupSetID(byte[] key, byte[] consumer, byte[] id)
xgroupSetID in interface BinaryJedisClusterCommandspublic Long xgroupDestroy(byte[] key, byte[] consumer)
xgroupDestroy in interface BinaryJedisClusterCommandspublic Long xgroupDelConsumer(byte[] key, byte[] consumer, byte[] consumerName)
xgroupDelConsumer in interface BinaryJedisClusterCommandspublic List<byte[]> xreadGroup(byte[] groupname, byte[] consumer, int count, long block, boolean noAck, Map<byte[],byte[]> streams)
xreadGroup in interface MultiKeyBinaryJedisClusterCommandspublic Long xdel(byte[] key, byte[]... ids)
xdel in interface BinaryJedisClusterCommandspublic Long xtrim(byte[] key, long maxLen, boolean approximateLength)
xtrim in interface BinaryJedisClusterCommandspublic List<byte[]> xpending(byte[] key, byte[] groupname, byte[] start, byte[] end, int count, byte[] consumername)
xpending in interface BinaryJedisClusterCommandspublic List<byte[]> xclaim(byte[] key, byte[] groupname, byte[] consumername, long minIdleTime, long newIdleTime, int retries, boolean force, byte[][] ids)
xclaim in interface BinaryJedisClusterCommandspublic Long waitReplicas(byte[] key, int replicas, long timeout)
waitReplicas in interface BinaryJedisClusterCommandspublic Object sendCommand(byte[] sampleKey, ProtocolCommand cmd, byte[]... args)
Copyright © 2020. All rights reserved.