Package redis.clients.jedis
Class ShardedJedis
- java.lang.Object
-
- redis.clients.jedis.util.Sharded<Jedis,JedisShardInfo>
-
- redis.clients.jedis.BinaryShardedJedis
-
- redis.clients.jedis.ShardedJedis
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BinaryJedisCommands,JedisCommands
public class ShardedJedis extends BinaryShardedJedis implements JedisCommands, Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected ShardedJedisPooldataSource-
Fields inherited from class redis.clients.jedis.util.Sharded
DEFAULT_KEY_TAG_PATTERN, DEFAULT_WEIGHT
-
-
Constructor Summary
Constructors Constructor Description ShardedJedis(List<JedisShardInfo> shards)ShardedJedis(List<JedisShardInfo> shards, Pattern keyTagPattern)ShardedJedis(List<JedisShardInfo> shards, Hashing algo)ShardedJedis(List<JedisShardInfo> shards, Hashing algo, Pattern keyTagPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longappend(String key, String value)Longbitcount(String key)Longbitcount(String key, long start, long end)List<Long>bitfield(String key, String... arguments)Executes BITFIELD Redis commandList<Long>bitfieldReadonly(String key, String... arguments)Longbitpos(String key, boolean value)Longbitpos(String key, boolean value, BitPosParams params)List<String>blpop(int timeout, String key)List<String>blpop(String arg)List<String>brpop(int timeout, String key)List<String>brpop(String arg)voidclose()Longdecr(String key)LongdecrBy(String key, long decrement)Longdel(String key)byte[]dump(String key)Stringecho(String string)Booleanexists(String key)Longexpire(String key, int seconds)LongexpireAt(String key, long unixTime)Longgeoadd(String key, double longitude, double latitude, String member)Longgeoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)Doublegeodist(String key, String member1, String member2)Doublegeodist(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)Stringget(String key)Booleangetbit(String key, long offset)Stringgetrange(String key, long startOffset, long endOffset)StringgetSet(String key, String value)Longhdel(String key, String... fields)Booleanhexists(String key, String field)Stringhget(String key, String field)Map<String,String>hgetAll(String key)LonghincrBy(String key, String field, long value)DoublehincrByFloat(String key, String field, double value)Set<String>hkeys(String key)Longhlen(String key)List<String>hmget(String key, String... fields)Stringhmset(String key, Map<String,String> hash)ScanResult<Map.Entry<String,String>>hscan(String key, String cursor)ScanResult<Map.Entry<String,String>>hscan(String key, String cursor, ScanParams params)Longhset(String key, String field, String value)Longhset(String key, Map<String,String> hash)Longhsetnx(String key, String field, String value)Longhstrlen(String key, String field)Used for HSTRLEN Redis commandList<String>hvals(String key)Longincr(String key)LongincrBy(String key, long increment)DoubleincrByFloat(String key, double increment)Stringlindex(String key, long index)Longlinsert(String key, ListPosition where, String pivot, String value)Longllen(String key)Stringlpop(String key)List<String>lpop(String key, int count)Longlpos(String key, String element)Longlpos(String key, String element, LPosParams params)List<Long>lpos(String key, String element, LPosParams params, long count)Longlpush(String key, String... strings)Longlpushx(String key, String... string)List<String>lrange(String key, long start, long stop)Longlrem(String key, long count, String value)Stringlset(String key, long index, String value)Stringltrim(String key, long start, long stop)Longmove(String key, int dbIndex)Longpersist(String key)Longpexpire(String key, long milliseconds)LongpexpireAt(String key, long millisecondsTimestamp)Longpfadd(String key, String... elements)longpfcount(String key)Stringpsetex(String key, long milliseconds, String value)Longpttl(String key)voidresetState()Stringrestore(String key, int ttl, byte[] serializedValue)StringrestoreReplace(String key, int ttl, byte[] serializedValue)Stringrpop(String key)List<String>rpop(String key, int count)Longrpush(String key, String... strings)Longrpushx(String key, String... string)Longsadd(String key, String... members)Longscard(String key)ObjectsendBlockingCommand(ProtocolCommand cmd, String... args)ObjectsendCommand(ProtocolCommand cmd, String... args)Stringset(String key, String value)Stringset(String key, String value, SetParams params)Booleansetbit(String key, long offset, boolean value)Booleansetbit(String key, long offset, String value)voidsetDataSource(ShardedJedisPool shardedJedisPool)Stringsetex(String key, int seconds, String value)Longsetnx(String key, String value)Longsetrange(String key, long offset, String value)Booleansismember(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)Stringspop(String key)Set<String>spop(String key, long count)Stringsrandmember(String key)List<String>srandmember(String key, int count)Longsrem(String key, String... members)ScanResult<String>sscan(String key, String cursor)ScanResult<String>sscan(String key, String cursor, ScanParams params)Longstrlen(String key)Stringsubstr(String key, int start, int end)Longtouch(String key)Longttl(String key)Stringtype(String key)Longunlink(String key)longxack(String key, String group, StreamEntryID... ids)XACK key group ID [ID ...]StreamEntryIDxadd(String key, StreamEntryID id, Map<String,String> hash)XADD key ID field string [field string ...]StreamEntryIDxadd(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[IDLE ] [TIME ] [RETRYCOUNT ] [FORCE] [JUSTID] longxdel(String key, StreamEntryID... ids)XDEL key ID [ID ...]StringxgroupCreate(String key, String consumer, StreamEntryID id, boolean makeStream)XGROUP CREATELongxgroupDelConsumer(String key, String groupname, String consumername)XGROUP DELCONSUMERlongxgroupDestroy(String key, String groupname)XGROUP DESTROYStringxgroupSetID(String key, String groupname, StreamEntryID id)XGROUP SETIDList<StreamConsumersInfo>xinfoConsumers(String key, String group)Introspection command used in order to retrieve different information about consumers in the groupList<StreamGroupInfo>xinfoGroup(String key)Introspection command used in order to retrieve different information about groups in the streamStreamInfoxinfoStream(String key)Introspection command used in order to retrieve different information about the streamLongxlen(String key)XLEN keyList<StreamPendingEntry>xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)XPENDING key group [start end count] [consumer]List<StreamEntry>xrange(String key, StreamEntryID start, StreamEntryID end, int count)XRANGE key start end [COUNT count]List<StreamEntry>xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)XREVRANGE key end start [COUNT] longxtrim(String key, long maxLen, boolean approximateLength)XTRIM key MAXLEN [~] countLongzadd(String key, double score, String member)Longzadd(String key, double score, String member, ZAddParams params)Longzadd(String key, Map<String,Double> scoreMembers)Longzadd(String key, Map<String,Double> scoreMembers, ZAddParams params)Longzcard(String key)Longzcount(String key, double min, double max)Longzcount(String key, String min, String max)Doublezincrby(String key, double increment, String member)Doublezincrby(String key, double increment, String member, ZIncrByParams params)Longzlexcount(String key, String min, String max)List<Double>zmscore(String key, String... members)Tuplezpopmax(String key)Set<Tuple>zpopmax(String key, int count)Tuplezpopmin(String key)Set<Tuple>zpopmin(String key, int 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)Longzrank(String key, String member)Longzrem(String key, String... members)LongzremrangeByLex(String key, String min, String max)LongzremrangeByRank(String key, long start, long stop)LongzremrangeByScore(String key, double min, double max)LongzremrangeByScore(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)Longzrevrank(String key, String member)ScanResult<Tuple>zscan(String key, String cursor)ScanResult<Tuple>zscan(String key, String cursor, ScanParams params)Doublezscore(String key, String member)-
Methods inherited from class redis.clients.jedis.BinaryShardedJedis
append, bitcount, bitcount, bitfield, bitfieldReadonly, blpop, brpop, create, decr, decrBy, del, disconnect, dump, echo, exists, expire, expireAt, geoadd, geoadd, geodist, geodist, geohash, geopos, georadius, georadius, georadiusByMember, georadiusByMember, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusReadonly, georadiusReadonly, get, getbit, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hincrByFloat, hkeys, hlen, hmget, hmset, 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, 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, xclaim, xdel, xgroupCreate, xgroupDelConsumer, xgroupDestroy, xgroupSetID, xinfoConsumers, xinfoGroup, xinfoStream, xlen, xpending, xrange, xrevrange, xtrim, zadd, zadd, zadd, zadd, zcard, zcount, zcount, zincrby, zincrby, zlexcount, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrange, zrangeByLex, zrangeByLex, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByLex, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeByLex, zrevrangeByLex, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscore
-
Methods inherited from class redis.clients.jedis.util.Sharded
getAllShardInfo, getAllShards, getKeyTag, getShard, getShard, getShardInfo, getShardInfo
-
-
-
-
Field Detail
-
dataSource
protected ShardedJedisPool dataSource
-
-
Constructor Detail
-
ShardedJedis
public ShardedJedis(List<JedisShardInfo> shards)
-
ShardedJedis
public ShardedJedis(List<JedisShardInfo> shards, Hashing algo)
-
ShardedJedis
public ShardedJedis(List<JedisShardInfo> shards, Pattern keyTagPattern)
-
ShardedJedis
public ShardedJedis(List<JedisShardInfo> shards, Hashing algo, Pattern keyTagPattern)
-
-
Method Detail
-
set
public String set(String key, String value)
- Specified by:
setin interfaceJedisCommands
-
set
public String set(String key, String value, SetParams params)
- Specified by:
setin interfaceJedisCommands
-
get
public String get(String key)
- Specified by:
getin interfaceJedisCommands
-
echo
public String echo(String string)
- Specified by:
echoin interfaceJedisCommands
-
exists
public Boolean exists(String key)
- Specified by:
existsin interfaceJedisCommands
-
type
public String type(String key)
- Specified by:
typein interfaceJedisCommands
-
dump
public byte[] dump(String key)
- Specified by:
dumpin interfaceJedisCommands
-
restore
public String restore(String key, int ttl, byte[] serializedValue)
- Specified by:
restorein interfaceJedisCommands
-
restoreReplace
public String restoreReplace(String key, int ttl, byte[] serializedValue)
- Specified by:
restoreReplacein interfaceJedisCommands
-
expire
public Long expire(String key, int seconds)
- Specified by:
expirein interfaceJedisCommands
-
pexpire
public Long pexpire(String key, long milliseconds)
- Specified by:
pexpirein interfaceJedisCommands
-
expireAt
public Long expireAt(String key, long unixTime)
- Specified by:
expireAtin interfaceJedisCommands
-
pexpireAt
public Long pexpireAt(String key, long millisecondsTimestamp)
- Specified by:
pexpireAtin interfaceJedisCommands
-
ttl
public Long ttl(String key)
- Specified by:
ttlin interfaceJedisCommands
-
pttl
public Long pttl(String key)
- Specified by:
pttlin interfaceJedisCommands
-
setbit
public Boolean setbit(String key, long offset, boolean value)
- Specified by:
setbitin interfaceJedisCommands
-
setbit
public Boolean setbit(String key, long offset, String value)
- Specified by:
setbitin interfaceJedisCommands
-
getbit
public Boolean getbit(String key, long offset)
- Specified by:
getbitin interfaceJedisCommands
-
setrange
public Long setrange(String key, long offset, String value)
- Specified by:
setrangein interfaceJedisCommands
-
getrange
public String getrange(String key, long startOffset, long endOffset)
- Specified by:
getrangein interfaceJedisCommands
-
getSet
public String getSet(String key, String value)
- Specified by:
getSetin interfaceJedisCommands
-
setnx
public Long setnx(String key, String value)
- Specified by:
setnxin interfaceJedisCommands
-
setex
public String setex(String key, int seconds, String value)
- Specified by:
setexin interfaceJedisCommands
-
psetex
public String psetex(String key, long milliseconds, String value)
- Specified by:
psetexin interfaceJedisCommands
-
blpop
public List<String> blpop(int timeout, String key)
- Specified by:
blpopin interfaceJedisCommands
-
brpop
public List<String> brpop(int timeout, String key)
- Specified by:
brpopin interfaceJedisCommands
-
decrBy
public Long decrBy(String key, long decrement)
- Specified by:
decrByin interfaceJedisCommands
-
decr
public Long decr(String key)
- Specified by:
decrin interfaceJedisCommands
-
incrBy
public Long incrBy(String key, long increment)
- Specified by:
incrByin interfaceJedisCommands
-
incrByFloat
public Double incrByFloat(String key, double increment)
- Specified by:
incrByFloatin interfaceJedisCommands
-
incr
public Long incr(String key)
- Specified by:
incrin interfaceJedisCommands
-
append
public Long append(String key, String value)
- Specified by:
appendin interfaceJedisCommands
-
substr
public String substr(String key, int start, int end)
- Specified by:
substrin interfaceJedisCommands
-
hset
public Long hset(String key, String field, String value)
- Specified by:
hsetin interfaceJedisCommands
-
hset
public Long hset(String key, Map<String,String> hash)
- Specified by:
hsetin interfaceJedisCommands
-
hget
public String hget(String key, String field)
- Specified by:
hgetin interfaceJedisCommands
-
hsetnx
public Long hsetnx(String key, String field, String value)
- Specified by:
hsetnxin interfaceJedisCommands
-
hmset
public String hmset(String key, Map<String,String> hash)
- Specified by:
hmsetin interfaceJedisCommands
-
hmget
public List<String> hmget(String key, String... fields)
- Specified by:
hmgetin interfaceJedisCommands
-
hincrBy
public Long hincrBy(String key, String field, long value)
- Specified by:
hincrByin interfaceJedisCommands
-
hincrByFloat
public Double hincrByFloat(String key, String field, double value)
- Specified by:
hincrByFloatin interfaceJedisCommands
-
hexists
public Boolean hexists(String key, String field)
- Specified by:
hexistsin interfaceJedisCommands
-
del
public Long del(String key)
- Specified by:
delin interfaceJedisCommands
-
unlink
public Long unlink(String key)
- Specified by:
unlinkin interfaceJedisCommands
-
hdel
public Long hdel(String key, String... fields)
- Specified by:
hdelin interfaceJedisCommands
-
hlen
public Long hlen(String key)
- Specified by:
hlenin interfaceJedisCommands
-
hkeys
public Set<String> hkeys(String key)
- Specified by:
hkeysin interfaceJedisCommands
-
hvals
public List<String> hvals(String key)
- Specified by:
hvalsin interfaceJedisCommands
-
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAllin interfaceJedisCommands
-
rpush
public Long rpush(String key, String... strings)
- Specified by:
rpushin interfaceJedisCommands
-
lpush
public Long lpush(String key, String... strings)
- Specified by:
lpushin interfaceJedisCommands
-
lpushx
public Long lpushx(String key, String... string)
- Specified by:
lpushxin interfaceJedisCommands
-
strlen
public Long strlen(String key)
- Specified by:
strlenin interfaceJedisCommands
-
move
public Long move(String key, int dbIndex)
- Specified by:
movein interfaceJedisCommands
-
rpushx
public Long rpushx(String key, String... string)
- Specified by:
rpushxin interfaceJedisCommands
-
persist
public Long persist(String key)
- Specified by:
persistin interfaceJedisCommands
-
llen
public Long llen(String key)
- Specified by:
llenin interfaceJedisCommands
-
lrange
public List<String> lrange(String key, long start, long stop)
- Specified by:
lrangein interfaceJedisCommands
-
ltrim
public String ltrim(String key, long start, long stop)
- Specified by:
ltrimin interfaceJedisCommands
-
lindex
public String lindex(String key, long index)
- Specified by:
lindexin interfaceJedisCommands
-
lset
public String lset(String key, long index, String value)
- Specified by:
lsetin interfaceJedisCommands
-
lrem
public Long lrem(String key, long count, String value)
- Specified by:
lremin interfaceJedisCommands
-
lpop
public String lpop(String key)
- Specified by:
lpopin interfaceJedisCommands
-
lpop
public List<String> lpop(String key, int count)
- Specified by:
lpopin interfaceJedisCommands
-
lpos
public Long lpos(String key, String element)
- Specified by:
lposin interfaceJedisCommands
-
lpos
public Long lpos(String key, String element, LPosParams params)
- Specified by:
lposin interfaceJedisCommands
-
lpos
public List<Long> lpos(String key, String element, LPosParams params, long count)
- Specified by:
lposin interfaceJedisCommands
-
rpop
public String rpop(String key)
- Specified by:
rpopin interfaceJedisCommands
-
rpop
public List<String> rpop(String key, int count)
- Specified by:
rpopin interfaceJedisCommands
-
sadd
public Long sadd(String key, String... members)
- Specified by:
saddin interfaceJedisCommands
-
smembers
public Set<String> smembers(String key)
- Specified by:
smembersin interfaceJedisCommands
-
srem
public Long srem(String key, String... members)
- Specified by:
sremin interfaceJedisCommands
-
spop
public String spop(String key)
- Specified by:
spopin interfaceJedisCommands
-
spop
public Set<String> spop(String key, long count)
- Specified by:
spopin interfaceJedisCommands
-
scard
public Long scard(String key)
- Specified by:
scardin interfaceJedisCommands
-
sismember
public Boolean sismember(String key, String member)
- Specified by:
sismemberin interfaceJedisCommands
-
smismember
public List<Boolean> smismember(String key, String... members)
- Specified by:
smismemberin interfaceJedisCommands
-
srandmember
public String srandmember(String key)
- Specified by:
srandmemberin interfaceJedisCommands
-
srandmember
public List<String> srandmember(String key, int count)
- Specified by:
srandmemberin interfaceJedisCommands
-
zadd
public Long zadd(String key, double score, String member)
- Specified by:
zaddin interfaceJedisCommands
-
zadd
public Long zadd(String key, double score, String member, ZAddParams params)
- Specified by:
zaddin interfaceJedisCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers)
- Specified by:
zaddin interfaceJedisCommands
-
zadd
public Long zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
- Specified by:
zaddin interfaceJedisCommands
-
zrange
public Set<String> zrange(String key, long start, long stop)
- Specified by:
zrangein interfaceJedisCommands
-
zrem
public Long zrem(String key, String... members)
- Specified by:
zremin interfaceJedisCommands
-
zincrby
public Double zincrby(String key, double increment, String member)
- Specified by:
zincrbyin interfaceJedisCommands
-
zincrby
public Double zincrby(String key, double increment, String member, ZIncrByParams params)
- Specified by:
zincrbyin interfaceJedisCommands
-
zrank
public Long zrank(String key, String member)
- Specified by:
zrankin interfaceJedisCommands
-
zrevrank
public Long zrevrank(String key, String member)
- Specified by:
zrevrankin interfaceJedisCommands
-
zrevrange
public Set<String> zrevrange(String key, long start, long stop)
- Specified by:
zrevrangein interfaceJedisCommands
-
zrangeWithScores
public Set<Tuple> zrangeWithScores(String key, long start, long stop)
- Specified by:
zrangeWithScoresin interfaceJedisCommands
-
zrevrangeWithScores
public Set<Tuple> zrevrangeWithScores(String key, long start, long stop)
- Specified by:
zrevrangeWithScoresin interfaceJedisCommands
-
zcard
public Long zcard(String key)
- Specified by:
zcardin interfaceJedisCommands
-
zscore
public Double zscore(String key, String member)
- Specified by:
zscorein interfaceJedisCommands
-
zmscore
public List<Double> zmscore(String key, String... members)
- Specified by:
zmscorein interfaceJedisCommands
-
zpopmax
public Tuple zpopmax(String key)
- Specified by:
zpopmaxin interfaceJedisCommands
-
zpopmax
public Set<Tuple> zpopmax(String key, int count)
- Specified by:
zpopmaxin interfaceJedisCommands
-
zpopmin
public Tuple zpopmin(String key)
- Specified by:
zpopminin interfaceJedisCommands
-
zpopmin
public Set<Tuple> zpopmin(String key, int count)
- Specified by:
zpopminin interfaceJedisCommands
-
sort
public List<String> sort(String key)
- Specified by:
sortin interfaceJedisCommands
-
sort
public List<String> sort(String key, SortingParams sortingParameters)
- Specified by:
sortin interfaceJedisCommands
-
zcount
public Long zcount(String key, double min, double max)
- Specified by:
zcountin interfaceJedisCommands
-
zcount
public Long zcount(String key, String min, String max)
- Specified by:
zcountin interfaceJedisCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max)
- Specified by:
zrangeByScorein interfaceJedisCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min)
- Specified by:
zrevrangeByScorein interfaceJedisCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScorein interfaceJedisCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScorein interfaceJedisCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max)
- Specified by:
zrangeByScorein interfaceJedisCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min)
- Specified by:
zrevrangeByScorein interfaceJedisCommands
-
zrangeByScore
public Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScorein interfaceJedisCommands
-
zrevrangeByScore
public Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScorein interfaceJedisCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisCommands
-
zrangeByScoreWithScores
public Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByScoreWithScoresin interfaceJedisCommands
-
zrevrangeByScoreWithScores
public Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByScoreWithScoresin interfaceJedisCommands
-
zremrangeByRank
public Long zremrangeByRank(String key, long start, long stop)
- Specified by:
zremrangeByRankin interfaceJedisCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, double min, double max)
- Specified by:
zremrangeByScorein interfaceJedisCommands
-
zremrangeByScore
public Long zremrangeByScore(String key, String min, String max)
- Specified by:
zremrangeByScorein interfaceJedisCommands
-
zlexcount
public Long zlexcount(String key, String min, String max)
- Specified by:
zlexcountin interfaceJedisCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max)
- Specified by:
zrangeByLexin interfaceJedisCommands
-
zrangeByLex
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
- Specified by:
zrangeByLexin interfaceJedisCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min)
- Specified by:
zrevrangeByLexin interfaceJedisCommands
-
zrevrangeByLex
public Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
- Specified by:
zrevrangeByLexin interfaceJedisCommands
-
zremrangeByLex
public Long zremrangeByLex(String key, String min, String max)
- Specified by:
zremrangeByLexin interfaceJedisCommands
-
linsert
public Long linsert(String key, ListPosition where, String pivot, String value)
- Specified by:
linsertin interfaceJedisCommands
-
bitcount
public Long bitcount(String key)
- Specified by:
bitcountin interfaceJedisCommands
-
bitcount
public Long bitcount(String key, long start, long end)
- Specified by:
bitcountin interfaceJedisCommands
-
bitpos
public Long bitpos(String key, boolean value)
- Specified by:
bitposin interfaceJedisCommands
-
bitpos
public Long bitpos(String key, boolean value, BitPosParams params)
- Specified by:
bitposin interfaceJedisCommands
-
hscan
public ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
- Specified by:
hscanin interfaceJedisCommands
-
hscan
public ScanResult<Map.Entry<String,String>> hscan(String key, String cursor, ScanParams params)
- Specified by:
hscanin interfaceJedisCommands
-
sscan
public ScanResult<String> sscan(String key, String cursor)
- Specified by:
sscanin interfaceJedisCommands
-
zscan
public ScanResult<Tuple> zscan(String key, String cursor)
- Specified by:
zscanin interfaceJedisCommands
-
zscan
public ScanResult<Tuple> zscan(String key, String cursor, ScanParams params)
- Specified by:
zscanin interfaceJedisCommands
-
sscan
public ScanResult<String> sscan(String key, String cursor, ScanParams params)
- Specified by:
sscanin interfaceJedisCommands
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
setDataSource
public void setDataSource(ShardedJedisPool shardedJedisPool)
-
resetState
public void resetState()
-
pfadd
public Long pfadd(String key, String... elements)
- Specified by:
pfaddin interfaceJedisCommands
-
pfcount
public long pfcount(String key)
- Specified by:
pfcountin interfaceJedisCommands
-
touch
public Long touch(String key)
- Specified by:
touchin interfaceJedisCommands
-
geoadd
public Long geoadd(String key, double longitude, double latitude, String member)
- Specified by:
geoaddin interfaceJedisCommands
-
geoadd
public Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
- Specified by:
geoaddin interfaceJedisCommands
-
geodist
public Double geodist(String key, String member1, String member2)
- Specified by:
geodistin interfaceJedisCommands
-
geodist
public Double geodist(String key, String member1, String member2, GeoUnit unit)
- Specified by:
geodistin interfaceJedisCommands
-
geohash
public List<String> geohash(String key, String... members)
- Specified by:
geohashin interfaceJedisCommands
-
geopos
public List<GeoCoordinate> geopos(String key, String... members)
- Specified by:
geoposin interfaceJedisCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadiusin interfaceJedisCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit)
- Specified by:
georadiusReadonlyin interfaceJedisCommands
-
georadius
public List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusin interfaceJedisCommands
-
georadiusReadonly
public List<GeoRadiusResponse> georadiusReadonly(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusReadonlyin interfaceJedisCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMemberin interfaceJedisCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit)
- Specified by:
georadiusByMemberReadonlyin interfaceJedisCommands
-
georadiusByMember
public List<GeoRadiusResponse> georadiusByMember(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMemberin interfaceJedisCommands
-
georadiusByMemberReadonly
public List<GeoRadiusResponse> georadiusByMemberReadonly(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param)
- Specified by:
georadiusByMemberReadonlyin interfaceJedisCommands
-
bitfield
public List<Long> bitfield(String key, String... arguments)
Description copied from interface:JedisCommandsExecutes BITFIELD Redis command- Specified by:
bitfieldin interfaceJedisCommands- Returns:
-
bitfieldReadonly
public List<Long> bitfieldReadonly(String key, String... arguments)
- Specified by:
bitfieldReadonlyin interfaceJedisCommands
-
hstrlen
public Long hstrlen(String key, String field)
Description copied from interface:JedisCommandsUsed for HSTRLEN Redis command- Specified by:
hstrlenin interfaceJedisCommands- Returns:
- length of the value for key
-
xadd
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
Description copied from interface:JedisCommandsXADD key ID field string [field string ...]- Specified by:
xaddin interfaceJedisCommands- Returns:
- the ID of the added entry
-
xadd
public StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
Description copied from interface:JedisCommandsXADD key MAXLEN ~ LEN ID field string [field string ...]- Specified by:
xaddin interfaceJedisCommands- Returns:
-
xlen
public Long xlen(String key)
Description copied from interface:JedisCommandsXLEN key- Specified by:
xlenin interfaceJedisCommands- Returns:
-
xrange
public List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
Description copied from interface:JedisCommandsXRANGE key start end [COUNT count]- Specified by:
xrangein interfaceJedisCommandsstart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the streamend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the streamcount- maximum number of entries returned- Returns:
- The entries with IDs matching the specified range.
-
xack
public long xack(String key, String group, StreamEntryID... ids)
Description copied from interface:JedisCommandsXACK key group ID [ID ...]- Specified by:
xackin interfaceJedisCommands- Returns:
-
xgroupCreate
public String xgroupCreate(String key, String consumer, StreamEntryID id, boolean makeStream)
Description copied from interface:JedisCommandsXGROUP CREATE- Specified by:
xgroupCreatein interfaceJedisCommands- Returns:
-
xgroupSetID
public String xgroupSetID(String key, String groupname, StreamEntryID id)
Description copied from interface:JedisCommandsXGROUP SETID- Specified by:
xgroupSetIDin interfaceJedisCommands- Returns:
-
xgroupDestroy
public long xgroupDestroy(String key, String groupname)
Description copied from interface:JedisCommandsXGROUP DESTROY- Specified by:
xgroupDestroyin interfaceJedisCommands- Returns:
-
xgroupDelConsumer
public Long xgroupDelConsumer(String key, String groupname, String consumername)
Description copied from interface:JedisCommandsXGROUP DELCONSUMER- Specified by:
xgroupDelConsumerin interfaceJedisCommands- Returns:
-
xdel
public long xdel(String key, StreamEntryID... ids)
Description copied from interface:JedisCommandsXDEL key ID [ID ...]- Specified by:
xdelin interfaceJedisCommands- Returns:
-
xtrim
public long xtrim(String key, long maxLen, boolean approximateLength)
Description copied from interface:JedisCommandsXTRIM key MAXLEN [~] count- Specified by:
xtrimin interfaceJedisCommands- Returns:
-
xrevrange
public List<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
Description copied from interface:JedisCommandsXREVRANGE key end start [COUNT] - Specified by:
xrevrangein interfaceJedisCommandsend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the streamstart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the streamcount- The entries with IDs matching the specified range.- Returns:
- the entries with IDs matching the specified range, from the higher ID to the lower ID matching.
-
xpending
public List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
Description copied from interface:JedisCommandsXPENDING key group [start end count] [consumer]- Specified by:
xpendingin interfaceJedisCommands- Returns:
-
xclaim
public List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
Description copied from interface:JedisCommandsXCLAIM[IDLE ] [TIME ] [RETRYCOUNT ] [FORCE] [JUSTID] - Specified by:
xclaimin interfaceJedisCommands
-
xinfoStream
public StreamInfo xinfoStream(String key)
Description copied from interface:JedisCommandsIntrospection command used in order to retrieve different information about the stream- Specified by:
xinfoStreamin interfaceJedisCommands- Parameters:
key- Stream name- Returns:
StreamInfothat contains information about the stream
-
xinfoGroup
public List<StreamGroupInfo> xinfoGroup(String key)
Description copied from interface:JedisCommandsIntrospection command used in order to retrieve different information about groups in the stream- Specified by:
xinfoGroupin interfaceJedisCommands- Parameters:
key- Stream name- Returns:
- List of
StreamGroupInfocontaining information about groups
-
xinfoConsumers
public List<StreamConsumersInfo> xinfoConsumers(String key, String group)
Description copied from interface:JedisCommandsIntrospection command used in order to retrieve different information about consumers in the group- Specified by:
xinfoConsumersin interfaceJedisCommands- Parameters:
key- Stream namegroup- Group name- Returns:
- List of
StreamConsumersInfocontaining information about consumers that belong to the the group
-
sendCommand
public Object sendCommand(ProtocolCommand cmd, String... args)
-
sendBlockingCommand
public Object sendBlockingCommand(ProtocolCommand cmd, String... args)
-
-