public class ShardedJedis extends BinaryShardedJedis implements JedisCommands, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected ShardedJedisPool |
dataSource |
DEFAULT_KEY_TAG_PATTERN, DEFAULT_WEIGHT| Constructor and Description |
|---|
ShardedJedis(List<JedisShardInfo> shards) |
ShardedJedis(List<JedisShardInfo> shards,
Hashing algo) |
ShardedJedis(List<JedisShardInfo> shards,
Hashing algo,
Pattern keyTagPattern) |
ShardedJedis(List<JedisShardInfo> shards,
Pattern keyTagPattern) |
| Modifier and Type | Method and Description |
|---|---|
Long |
append(String key,
String value) |
Long |
bitcount(String key) |
Long |
bitcount(String key,
long start,
long end) |
List<Long> |
bitfield(String key,
String... arguments)
Executes BITFIELD Redis command
|
List<Long> |
bitfieldReadonly(String key,
String... arguments) |
Long |
bitpos(String key,
boolean value) |
Long |
bitpos(String key,
boolean value,
BitPosParams params) |
KeyedListElement |
blpop(double timeout,
String key) |
List<String> |
blpop(int timeout,
String key) |
KeyedListElement |
brpop(double timeout,
String key) |
List<String> |
brpop(int timeout,
String key) |
void |
close() |
Long |
decr(String key) |
Long |
decrBy(String key,
long decrement) |
Long |
del(String key) |
byte[] |
dump(String key) |
String |
echo(String string) |
Boolean |
exists(String key) |
Long |
expire(String key,
long seconds) |
Long |
expireAt(String key,
long unixTime) |
Long |
geoadd(String key,
double longitude,
double latitude,
String member) |
Long |
geoadd(String key,
GeoAddParams params,
Map<String,GeoCoordinate> memberCoordinateMap) |
Long |
geoadd(String key,
Map<String,GeoCoordinate> memberCoordinateMap) |
Double |
geodist(String key,
String member1,
String member2) |
Double |
geodist(String key,
String member1,
String member2,
GeoUnit unit) |
List<String> |
geohash(String key,
String... members) |
List<GeoCoordinate> |
geopos(String key,
String... members) |
List<GeoRadiusResponse> |
georadius(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadius(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMember(String key,
String member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMember(String key,
String member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(String key,
String member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(String key,
String member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
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 |
getDel(String key) |
String |
getEx(String key,
GetExParams params) |
String |
getrange(String key,
long startOffset,
long endOffset) |
String |
getSet(String key,
String value) |
Long |
hdel(String key,
String... fields) |
Boolean |
hexists(String key,
String field) |
String |
hget(String key,
String field) |
Map<String,String> |
hgetAll(String key) |
Long |
hincrBy(String key,
String field,
long value) |
Double |
hincrByFloat(String key,
String field,
double value) |
Set<String> |
hkeys(String key) |
Long |
hlen(String key) |
List<String> |
hmget(String key,
String... fields) |
String |
hmset(String key,
Map<String,String> hash) |
String |
hrandfield(String key) |
List<String> |
hrandfield(String key,
long count) |
Map<String,String> |
hrandfieldWithValues(String key,
long count) |
ScanResult<Map.Entry<String,String>> |
hscan(String key,
String cursor) |
ScanResult<Map.Entry<String,String>> |
hscan(String key,
String cursor,
ScanParams params) |
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) |
String |
lindex(String key,
long index) |
Long |
linsert(String key,
ListPosition where,
String pivot,
String value) |
Long |
llen(String key) |
String |
lpop(String key) |
List<String> |
lpop(String key,
int count) |
Long |
lpos(String key,
String element) |
Long |
lpos(String key,
String element,
LPosParams params) |
List<Long> |
lpos(String key,
String element,
LPosParams params,
long count) |
Long |
lpush(String key,
String... strings) |
Long |
lpushx(String key,
String... string) |
List<String> |
lrange(String key,
long start,
long stop) |
Long |
lrem(String key,
long count,
String value) |
String |
lset(String key,
long index,
String value) |
String |
ltrim(String key,
long start,
long stop) |
Long |
move(String key,
int dbIndex) |
Long |
persist(String key) |
Long |
pexpire(String key,
long milliseconds) |
Long |
pexpireAt(String key,
long millisecondsTimestamp) |
Long |
pfadd(String key,
String... elements) |
long |
pfcount(String key) |
String |
psetex(String key,
long milliseconds,
String value) |
Long |
pttl(String key) |
void |
resetState() |
String |
restore(String key,
long ttl,
byte[] serializedValue) |
String |
restore(String key,
long ttl,
byte[] serializedValue,
RestoreParams params) |
String |
restoreReplace(String key,
long ttl,
byte[] serializedValue) |
String |
rpop(String key) |
List<String> |
rpop(String key,
int count) |
Long |
rpush(String key,
String... strings) |
Long |
rpushx(String key,
String... string) |
Long |
sadd(String key,
String... members) |
Long |
scard(String key) |
Object |
sendBlockingCommand(ProtocolCommand cmd,
String... args) |
Object |
sendCommand(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) |
void |
setDataSource(ShardedJedisPool shardedJedisPool) |
String |
setex(String key,
long seconds,
String value) |
Long |
setnx(String key,
String value) |
Long |
setrange(String key,
long offset,
String value) |
Boolean |
sismember(String key,
String member) |
Set<String> |
smembers(String key) |
List<Boolean> |
smismember(String key,
String... members) |
List<String> |
sort(String key) |
List<String> |
sort(String key,
SortingParams sortingParameters) |
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... members) |
ScanResult<String> |
sscan(String key,
String cursor) |
ScanResult<String> |
sscan(String key,
String cursor,
ScanParams params) |
Long |
strlen(String key) |
String |
substr(String key,
int start,
int end) |
Long |
touch(String key) |
Long |
ttl(String key) |
String |
type(String key) |
Long |
unlink(String key) |
long |
xack(String key,
String group,
StreamEntryID... ids)
XACK key group ID [ID ...]
|
StreamEntryID |
xadd(String key,
Map<String,String> hash,
XAddParams params)
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]
|
StreamEntryID |
xadd(String key,
StreamEntryID id,
Map<String,String> hash)
XADD key ID field string [field string ...]
|
StreamEntryID |
xadd(String key,
StreamEntryID id,
Map<String,String> hash,
long maxLen,
boolean approximateLength)
XADD key MAXLEN ~ LEN ID field string [field string ...]
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
StreamEntryID... ids)
XCLAIM
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
XCLAIM
|
List<StreamEntryID> |
xclaimJustId(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
XCLAIM
|
long |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
String |
xgroupCreate(String key,
String consumer,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
Long |
xgroupDelConsumer(String key,
String groupname,
String consumername)
XGROUP DELCONSUMER
|
long |
xgroupDestroy(String key,
String groupname)
XGROUP DESTROY
|
String |
xgroupSetID(String key,
String groupname,
StreamEntryID id)
XGROUP SETID
|
List<StreamConsumersInfo> |
xinfoConsumers(String key,
String group)
Introspection command used in order to retrieve different information about consumers in the group
|
List<StreamGroupInfo> |
xinfoGroup(String key)
Introspection command used in order to retrieve different information about groups in the stream
|
StreamInfo |
xinfoStream(String key)
Introspection command used in order to retrieve different information about the stream
|
Long |
xlen(String key)
XLEN key
|
StreamPendingSummary |
xpending(String key,
String groupname)
XPENDING key group
|
List<StreamPendingEntry> |
xpending(String key,
String groupname,
StreamEntryID start,
StreamEntryID end,
int count,
String consumername)
XPENDING key group [start end count] [consumer]
|
List<StreamPendingEntry> |
xpending(String key,
String groupname,
XPendingParams params)
XPENDING key group [[IDLE min-idle-time] start end count [consumer]]
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end)
XRANGE key start end
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
int count)
XRANGE key start end COUNT count
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start)
XREVRANGE key end start
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count)
XREVRANGE key end start COUNT count
|
long |
xtrim(String key,
long maxLen,
boolean approximateLength)
XTRIM key MAXLEN [~] count
|
long |
xtrim(String key,
XTrimParams params)
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
|
Long |
zadd(String key,
double score,
String member) |
Long |
zadd(String key,
double score,
String member,
ZAddParams params) |
Long |
zadd(String key,
Map<String,Double> scoreMembers) |
Long |
zadd(String key,
Map<String,Double> scoreMembers,
ZAddParams params) |
Double |
zaddIncr(String key,
double score,
String member,
ZAddParams params) |
Long |
zcard(String key) |
Long |
zcount(String key,
double min,
double max) |
Long |
zcount(String key,
String min,
String max) |
Double |
zincrby(String key,
double increment,
String member) |
Double |
zincrby(String key,
double increment,
String member,
ZIncrByParams params) |
Long |
zlexcount(String key,
String min,
String max) |
List<Double> |
zmscore(String key,
String... members) |
Tuple |
zpopmax(String key) |
Set<Tuple> |
zpopmax(String key,
int count) |
Tuple |
zpopmin(String key) |
Set<Tuple> |
zpopmin(String key,
int count) |
String |
zrandmember(String key) |
Set<String> |
zrandmember(String key,
long count) |
Set<Tuple> |
zrandmemberWithScores(String key,
long count) |
Set<String> |
zrange(String key,
long start,
long stop) |
Set<String> |
zrangeByLex(String key,
String min,
String max) |
Set<String> |
zrangeByLex(String key,
String min,
String max,
int offset,
int count) |
Set<String> |
zrangeByScore(String key,
double min,
double max) |
Set<String> |
zrangeByScore(String key,
double min,
double max,
int offset,
int count) |
Set<String> |
zrangeByScore(String key,
String min,
String max) |
Set<String> |
zrangeByScore(String key,
String min,
String max,
int offset,
int count) |
Set<Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max) |
Set<Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max,
int offset,
int count) |
Set<Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max) |
Set<Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max,
int offset,
int count) |
Set<Tuple> |
zrangeWithScores(String key,
long start,
long stop) |
Long |
zrank(String key,
String member) |
Long |
zrem(String key,
String... members) |
Long |
zremrangeByLex(String key,
String min,
String max) |
Long |
zremrangeByRank(String key,
long start,
long stop) |
Long |
zremrangeByScore(String key,
double min,
double max) |
Long |
zremrangeByScore(String key,
String min,
String max) |
Set<String> |
zrevrange(String key,
long start,
long stop) |
Set<String> |
zrevrangeByLex(String key,
String max,
String min) |
Set<String> |
zrevrangeByLex(String key,
String max,
String min,
int offset,
int count) |
Set<String> |
zrevrangeByScore(String key,
double max,
double min) |
Set<String> |
zrevrangeByScore(String key,
double max,
double min,
int offset,
int count) |
Set<String> |
zrevrangeByScore(String key,
String max,
String min) |
Set<String> |
zrevrangeByScore(String key,
String max,
String min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min) |
Set<Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min) |
Set<Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min,
int offset,
int count) |
Set<Tuple> |
zrevrangeWithScores(String key,
long start,
long stop) |
Long |
zrevrank(String key,
String member) |
ScanResult<Tuple> |
zscan(String key,
String cursor) |
ScanResult<Tuple> |
zscan(String key,
String cursor,
ScanParams params) |
Double |
zscore(String key,
String member) |
append, bitcount, bitcount, bitfield, bitfieldReadonly, blpop, brpop, create, decr, decrBy, del, disconnect, dump, echo, exists, expire, expireAt, geoadd, geoadd, geoadd, geodist, geodist, geohash, geopos, georadius, georadius, georadiusByMember, georadiusByMember, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusReadonly, georadiusReadonly, get, getbit, getDel, getEx, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hincrByFloat, hkeys, hlen, hmget, hmset, hrandfield, hrandfield, hrandfieldWithValues, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, incr, incrBy, incrByFloat, lindex, linsert, llen, lpop, lpop, lpos, lpos, lpos, lpush, lpushx, lrange, lrem, lset, ltrim, move, objectEncoding, objectFreq, objectHelp, objectIdletime, objectRefcount, persist, pexpire, pexpireAt, pfadd, pfcount, pipelined, psetex, pttl, restore, restore, restoreReplace, rpop, rpop, rpush, rpushx, sadd, scard, sendBlockingCommand, sendCommand, sendCommand, set, set, setbit, setbit, setex, setnx, setrange, sismember, smembers, smismember, sort, sort, spop, spop, srandmember, srandmember, srem, sscan, sscan, strlen, substr, touch, ttl, type, unlink, xack, xadd, xadd, xclaim, xclaim, xclaimJustId, xdel, xgroupCreate, xgroupDelConsumer, xgroupDestroy, xgroupSetID, xinfoConsumers, xinfoConsumersBinary, xinfoGroup, xinfoGroupBinary, xinfoStream, xinfoStreamBinary, xlen, xpending, xpending, xpending, xrange, xrange, xrevrange, xrevrange, xtrim, xtrim, zadd, zadd, zadd, zadd, zaddIncr, zcard, zcount, zcount, zincrby, zincrby, zlexcount, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrandmember, zrandmember, zrandmemberWithScores, zrange, zrangeByLex, zrangeByLex, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByLex, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeByLex, zrevrangeByLex, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscoregetAllShardInfo, getAllShards, getKeyTag, getShard, getShard, getShardInfo, getShardInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpire, restore, restoreReplace, setexexpire, restore, restoreReplace, setex, xrangeprotected ShardedJedisPool dataSource
public ShardedJedis(List<JedisShardInfo> shards)
public ShardedJedis(List<JedisShardInfo> shards, Hashing algo)
public ShardedJedis(List<JedisShardInfo> shards, Pattern keyTagPattern)
public ShardedJedis(List<JedisShardInfo> shards, Hashing algo, Pattern keyTagPattern)
public String set(String key, String value)
set in interface JedisCommandspublic String set(String key, String value, SetParams params)
set in interface JedisCommandspublic String get(String key)
get in interface JedisCommandspublic String getDel(String key)
getDel in interface JedisCommandspublic String getEx(String key, GetExParams params)
getEx in interface JedisCommandspublic String echo(String string)
echo in interface JedisCommandspublic Boolean exists(String key)
exists in interface JedisCommandspublic String type(String key)
type in interface JedisCommandspublic byte[] dump(String key)
dump in interface JedisCommandspublic String restore(String key, long ttl, byte[] serializedValue)
restore in interface JedisCommandspublic String restoreReplace(String key, long ttl, byte[] serializedValue)
restoreReplace in interface JedisCommandspublic String restore(String key, long ttl, byte[] serializedValue, RestoreParams params)
restore in interface JedisCommandspublic Long expire(String key, long seconds)
expire in interface JedisCommandspublic Long pexpire(String key, long milliseconds)
pexpire in interface JedisCommandspublic Long expireAt(String key, long unixTime)
expireAt in interface JedisCommandspublic Long pexpireAt(String key, long millisecondsTimestamp)
pexpireAt in interface JedisCommandspublic Long ttl(String key)
ttl in interface JedisCommandspublic Long pttl(String key)
pttl in interface JedisCommandspublic Boolean setbit(String key, long offset, boolean value)
setbit in interface JedisCommandspublic Boolean setbit(String key, long offset, String value)
setbit in interface JedisCommandspublic Boolean getbit(String key, long offset)
getbit in interface JedisCommandspublic Long setrange(String key, long offset, String value)
setrange in interface JedisCommandspublic String getrange(String key, long startOffset, long endOffset)
getrange in interface JedisCommandspublic String getSet(String key, String value)
getSet in interface JedisCommandspublic Long setnx(String key, String value)
setnx in interface JedisCommandspublic String setex(String key, long seconds, String value)
setex in interface JedisCommandspublic String psetex(String key, long milliseconds, String value)
psetex in interface JedisCommandspublic List<String> blpop(int timeout, String key)
blpop in interface JedisCommandspublic KeyedListElement blpop(double timeout, String key)
blpop in interface JedisCommandspublic List<String> brpop(int timeout, String key)
brpop in interface JedisCommandspublic KeyedListElement brpop(double timeout, String key)
brpop in interface JedisCommandspublic Long decrBy(String key, long decrement)
decrBy in interface JedisCommandspublic Long decr(String key)
decr in interface JedisCommandspublic Long incrBy(String key, long increment)
incrBy in interface JedisCommandspublic Double incrByFloat(String key, double increment)
incrByFloat in interface JedisCommandspublic Long incr(String key)
incr in interface JedisCommandspublic Long append(String key, String value)
append in interface JedisCommandspublic String substr(String key, int start, int end)
substr in interface JedisCommandspublic Long hset(String key, String field, String value)
hset in interface JedisCommandspublic Long hset(String key, Map<String,String> hash)
hset in interface JedisCommandspublic String hget(String key, String field)
hget in interface JedisCommandspublic Long hsetnx(String key, String field, String value)
hsetnx in interface JedisCommandspublic String hmset(String key, Map<String,String> hash)
hmset in interface JedisCommandspublic List<String> hmget(String key, String... fields)
hmget in interface JedisCommandspublic Long hincrBy(String key, String field, long value)
hincrBy in interface JedisCommandspublic Double hincrByFloat(String key, String field, double value)
hincrByFloat in interface JedisCommandspublic Boolean hexists(String key, String field)
hexists in interface JedisCommandspublic Long del(String key)
del in interface JedisCommandspublic Long unlink(String key)
unlink in interface JedisCommandspublic Long hdel(String key, String... fields)
hdel in interface JedisCommandspublic Long hlen(String key)
hlen in interface JedisCommandspublic Set<String> hkeys(String key)
hkeys in interface JedisCommandspublic List<String> hvals(String key)
hvals in interface JedisCommandspublic Map<String,String> hgetAll(String key)
hgetAll in interface JedisCommandspublic String hrandfield(String key)
hrandfield in interface JedisCommandspublic List<String> hrandfield(String key, long count)
hrandfield in interface JedisCommandspublic Map<String,String> hrandfieldWithValues(String key, long count)
hrandfieldWithValues in interface JedisCommandspublic Long rpush(String key, String... strings)
rpush in interface JedisCommandspublic Long lpush(String key, String... strings)
lpush in interface JedisCommandspublic Long lpushx(String key, String... string)
lpushx in interface JedisCommandspublic Long strlen(String key)
strlen in interface JedisCommandspublic Long move(String key, int dbIndex)
move in interface JedisCommandspublic Long rpushx(String key, String... string)
rpushx in interface JedisCommandspublic Long persist(String key)
persist in interface JedisCommandspublic Long llen(String key)
llen in interface JedisCommandspublic List<String> lrange(String key, long start, long stop)
lrange in interface JedisCommandspublic String ltrim(String key, long start, long stop)
ltrim in interface JedisCommandspublic String lindex(String key, long index)
lindex in interface JedisCommandspublic String lset(String key, long index, String value)
lset in interface JedisCommandspublic Long lrem(String key, long count, String value)
lrem in interface JedisCommandspublic String lpop(String key)
lpop in interface JedisCommandspublic List<String> lpop(String key, int count)
lpop in interface JedisCommandspublic Long lpos(String key, String element)
lpos in interface JedisCommandspublic Long lpos(String key, String element, LPosParams params)
lpos in interface JedisCommandspublic List<Long> lpos(String key, String element, LPosParams params, long count)
lpos in interface JedisCommandspublic String rpop(String key)
rpop in interface JedisCommandspublic List<String> rpop(String key, int count)
rpop in interface JedisCommandspublic Long sadd(String key, String... members)
sadd in interface JedisCommandspublic Set<String> smembers(String key)
smembers in interface JedisCommandspublic Long srem(String key, String... members)
srem in interface JedisCommandspublic String spop(String key)
spop in interface JedisCommandspublic Set<String> spop(String key, long count)
spop in interface JedisCommandspublic Long scard(String key)
scard in interface JedisCommandspublic Boolean sismember(String key, String member)
sismember in interface JedisCommandspublic List<Boolean> smismember(String key, String... members)
smismember in interface JedisCommandspublic String srandmember(String key)
srandmember in interface JedisCommandspublic List<String> srandmember(String key, int count)
srandmember in interface JedisCommandspublic Long zadd(String key, double score, String member)
zadd in interface JedisCommandspublic Long zadd(String key, double score, String member, ZAddParams params)
zadd in interface JedisCommandspublic Long zadd(String key, Map<String,Double> scoreMembers)
zadd in interface JedisCommandspublic Long zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
zadd in interface JedisCommandspublic Double zaddIncr(String key, double score, String member, ZAddParams params)
zaddIncr in interface JedisCommandspublic Set<String> zrange(String key, long start, long stop)
zrange in interface JedisCommandspublic Long zrem(String key, String... members)
zrem in interface JedisCommandspublic Double zincrby(String key, double increment, String member)
zincrby in interface JedisCommandspublic Double zincrby(String key, double increment, String member, ZIncrByParams params)
zincrby in interface JedisCommandspublic Long zrank(String key, String member)
zrank in interface JedisCommandspublic Long zrevrank(String key, String member)
zrevrank in interface JedisCommandspublic Set<String> zrevrange(String key, long start, long stop)
zrevrange in interface JedisCommandspublic Set<Tuple> zrangeWithScores(String key, long start, long stop)
zrangeWithScores in interface JedisCommandspublic Set<Tuple> zrevrangeWithScores(String key, long start, long stop)
zrevrangeWithScores in interface JedisCommandspublic String zrandmember(String key)
zrandmember in interface JedisCommandspublic Set<String> zrandmember(String key, long count)
zrandmember in interface JedisCommandspublic Set<Tuple> zrandmemberWithScores(String key, long count)
zrandmemberWithScores in interface JedisCommandspublic Long zcard(String key)
zcard in interface JedisCommandspublic Double zscore(String key, String member)
zscore in interface JedisCommandspublic List<Double> zmscore(String key, String... members)
zmscore in interface JedisCommandspublic Tuple zpopmax(String key)
zpopmax in interface JedisCommandspublic Set<Tuple> zpopmax(String key, int count)
zpopmax in interface JedisCommandspublic Tuple zpopmin(String key)
zpopmin in interface JedisCommandspublic Set<Tuple> zpopmin(String key, int count)
zpopmin in interface JedisCommandspublic List<String> sort(String key)
sort in interface JedisCommandspublic List<String> sort(String key, SortingParams sortingParameters)
sort in interface JedisCommandspublic Long zcount(String key, double min, double max)
zcount in interface JedisCommandspublic Long zcount(String key, String min, String max)
zcount in interface JedisCommandspublic Set<String> zrangeByScore(String key, double min, double max)
zrangeByScore in interface JedisCommandspublic Set<String> zrevrangeByScore(String key, double max, double min)
zrevrangeByScore in interface JedisCommandspublic Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
zrangeByScore in interface JedisCommandspublic Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
zrevrangeByScore in interface JedisCommandspublic Set<Tuple> zrangeByScoreWithScores(String key, double min, double max)
zrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
zrevrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
zrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
zrevrangeByScoreWithScores in interface JedisCommandspublic Set<String> zrangeByScore(String key, String min, String max)
zrangeByScore in interface JedisCommandspublic Set<String> zrevrangeByScore(String key, String max, String min)
zrevrangeByScore in interface JedisCommandspublic Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
zrangeByScore in interface JedisCommandspublic Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
zrevrangeByScore in interface JedisCommandspublic Set<Tuple> zrangeByScoreWithScores(String key, String min, String max)
zrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
zrevrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
zrangeByScoreWithScores in interface JedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
zrevrangeByScoreWithScores in interface JedisCommandspublic Long zremrangeByRank(String key, long start, long stop)
zremrangeByRank in interface JedisCommandspublic Long zremrangeByScore(String key, double min, double max)
zremrangeByScore in interface JedisCommandspublic Long zremrangeByScore(String key, String min, String max)
zremrangeByScore in interface JedisCommandspublic Long zlexcount(String key, String min, String max)
zlexcount in interface JedisCommandspublic Set<String> zrangeByLex(String key, String min, String max)
zrangeByLex in interface JedisCommandspublic Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
zrangeByLex in interface JedisCommandspublic Set<String> zrevrangeByLex(String key, String max, String min)
zrevrangeByLex in interface JedisCommandspublic Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
zrevrangeByLex in interface JedisCommandspublic Long zremrangeByLex(String key, String min, String max)
zremrangeByLex in interface JedisCommandspublic Long linsert(String key, ListPosition where, String pivot, String value)
linsert in interface JedisCommandspublic Long bitcount(String key)
bitcount in interface JedisCommandspublic Long bitcount(String key, long start, long end)
bitcount in interface JedisCommandspublic Long bitpos(String key, boolean value)
bitpos in interface JedisCommandspublic Long bitpos(String key, boolean value, BitPosParams params)
bitpos in interface JedisCommandspublic ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
hscan in interface JedisCommandspublic ScanResult<Map.Entry<String,String>> hscan(String key, String cursor, ScanParams params)
hscan in interface JedisCommandspublic ScanResult<String> sscan(String key, String cursor)
sscan in interface JedisCommandspublic ScanResult<Tuple> zscan(String key, String cursor)
zscan in interface JedisCommandspublic ScanResult<Tuple> zscan(String key, String cursor, ScanParams params)
zscan in interface JedisCommandspublic ScanResult<String> sscan(String key, String cursor, ScanParams params)
sscan in interface JedisCommandspublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void setDataSource(ShardedJedisPool shardedJedisPool)
public void resetState()
public Long pfadd(String key, String... elements)
pfadd in interface JedisCommandspublic long pfcount(String key)
pfcount in interface JedisCommandspublic Long touch(String key)
touch in interface JedisCommandspublic Long geoadd(String key, double longitude, double latitude, String member)
geoadd in interface JedisCommandspublic Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
geoadd in interface JedisCommandspublic Long geoadd(String key, GeoAddParams params, Map<String,GeoCoordinate> memberCoordinateMap)
geoadd in interface JedisCommandspublic Double geodist(String key, String member1, String member2)
geodist in interface JedisCommandspublic Double geodist(String key, String member1, String member2, GeoUnit unit)
geodist in interface JedisCommandspublic List<String> geohash(String key, String... members)
geohash in interface JedisCommandspublic List<GeoCoordinate> geopos(String key, String... members)
geopos in interface JedisCommandspublic List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
georadius in interface JedisCommandspublic List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)
georadiusReadonly in interface JedisCommandspublic List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadius in interface JedisCommandspublic List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusReadonly in interface JedisCommandspublic List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit)
georadiusByMember in interface JedisCommandspublic List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)
georadiusByMemberReadonly in interface JedisCommandspublic List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMember in interface JedisCommandspublic List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
georadiusByMemberReadonly in interface JedisCommandspublic List<Long> bitfield(String key, String... arguments)
JedisCommandsbitfield in interface JedisCommandspublic List<Long> bitfieldReadonly(String key, String... arguments)
bitfieldReadonly in interface JedisCommandspublic Long hstrlen(String key, String field)
JedisCommandshstrlen in interface JedisCommandspublic StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
JedisCommandsxadd in interface JedisCommandspublic StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
JedisCommandsxadd in interface JedisCommandspublic StreamEntryID xadd(String key, Map<String,String> hash, XAddParams params)
JedisCommandsxadd in interface JedisCommandspublic Long xlen(String key)
JedisCommandsxlen in interface JedisCommandspublic List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end)
JedisCommandsxrange in interface JedisCommandsstart - minimum StreamEntryID for the retrieved range, passing null will indicate minimum ID possible in the streamend - maximum StreamEntryID for the retrieved range, passing null will indicate maximum ID possible in the streampublic List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
JedisCommandsxrange in interface JedisCommandsstart - minimum StreamEntryID for the retrieved range, passing null will indicate minimum ID possible in the streamend - maximum StreamEntryID for the retrieved range, passing null will indicate maximum ID possible in the streamcount - maximum number of entries returnedpublic long xack(String key, String group, StreamEntryID... ids)
JedisCommandsxack in interface JedisCommandspublic String xgroupCreate(String key, String consumer, StreamEntryID id, boolean makeStream)
JedisCommandsxgroupCreate in interface JedisCommandspublic String xgroupSetID(String key, String groupname, StreamEntryID id)
JedisCommandsxgroupSetID in interface JedisCommandspublic long xgroupDestroy(String key, String groupname)
JedisCommandsxgroupDestroy in interface JedisCommandspublic Long xgroupDelConsumer(String key, String groupname, String consumername)
JedisCommandsxgroupDelConsumer in interface JedisCommandspublic long xdel(String key, StreamEntryID... ids)
JedisCommandsxdel in interface JedisCommandspublic long xtrim(String key, long maxLen, boolean approximateLength)
JedisCommandsxtrim in interface JedisCommandspublic long xtrim(String key, XTrimParams params)
JedisCommandsxtrim in interface JedisCommandspublic List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start)
JedisCommandsxrevrange in interface JedisCommandsend - maximum StreamEntryID for the retrieved range, passing null will indicate maximum ID possible in the streamstart - minimum StreamEntryID for the retrieved range, passing null will indicate minimum ID possible in the streampublic List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
JedisCommandsxrevrange in interface JedisCommandsend - maximum StreamEntryID for the retrieved range, passing null will indicate maximum ID possible in the streamstart - minimum StreamEntryID for the retrieved range, passing null will indicate minimum ID possible in the streamcount - The entries with IDs matching the specified range.public StreamPendingSummary xpending(String key, String groupname)
JedisCommandsxpending in interface JedisCommandspublic List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
JedisCommandsxpending in interface JedisCommandspublic List<StreamPendingEntry> xpending(String key, String groupname, XPendingParams params)
JedisCommandsxpending in interface JedisCommandspublic List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
JedisCommandsxclaim in interface JedisCommandspublic List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
JedisCommandsxclaim in interface JedisCommandspublic List<StreamEntryID> xclaimJustId(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
JedisCommandsxclaimJustId in interface JedisCommandspublic StreamInfo xinfoStream(String key)
JedisCommandsxinfoStream in interface JedisCommandskey - Stream nameStreamInfo that contains information about the streampublic List<StreamGroupInfo> xinfoGroup(String key)
JedisCommandsxinfoGroup in interface JedisCommandskey - Stream nameStreamGroupInfo containing information about groupspublic List<StreamConsumersInfo> xinfoConsumers(String key, String group)
JedisCommandsxinfoConsumers in interface JedisCommandskey - Stream namegroup - Group nameStreamConsumersInfo containing information about consumers that belong
to the the grouppublic Object sendCommand(ProtocolCommand cmd, String... args)
public Object sendBlockingCommand(ProtocolCommand cmd, String... args)
Copyright © 2021. All rights reserved.