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