public interface JedisCommands
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) |
List<String> |
blpop(int timeout,
String key) |
List<String> |
brpop(int timeout,
String key) |
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,
int seconds) |
Long |
expireAt(String key,
long unixTime) |
Long |
geoadd(String key,
double longitude,
double latitude,
String member) |
Long |
geoadd(String key,
Map<String,GeoCoordinate> memberCoordinateMap) |
Double |
geodist(String key,
String member1,
String member2) |
Double |
geodist(String key,
String member1,
String member2,
GeoUnit unit) |
List<String> |
geohash(String key,
String... members) |
List<GeoCoordinate> |
geopos(String key,
String... members) |
List<GeoRadiusResponse> |
georadius(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadius(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMember(String key,
String member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMember(String key,
String member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(String key,
String member,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusByMemberReadonly(String key,
String member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
List<GeoRadiusResponse> |
georadiusReadonly(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
List<GeoRadiusResponse> |
georadiusReadonly(String key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
String |
get(String key) |
Boolean |
getbit(String key,
long offset) |
String |
getrange(String key,
long startOffset,
long endOffset) |
String |
getSet(String key,
String value) |
Long |
hdel(String key,
String... field) |
Boolean |
hexists(String key,
String field) |
String |
hget(String key,
String field) |
Map<String,String> |
hgetAll(String key) |
Long |
hincrBy(String key,
String field,
long value) |
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) |
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... string) |
Long |
lpushx(String key,
String... string) |
List<String> |
lrange(String key,
long start,
long stop) |
Long |
lrem(String key,
long count,
String value) |
String |
lset(String key,
long index,
String value) |
String |
ltrim(String key,
long start,
long stop) |
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) |
String |
restore(String key,
int ttl,
byte[] serializedValue) |
String |
restoreReplace(String key,
int ttl,
byte[] serializedValue) |
String |
rpop(String key) |
List<String> |
rpop(String key,
int count) |
Long |
rpush(String key,
String... string) |
Long |
rpushx(String key,
String... string) |
Long |
sadd(String key,
String... member) |
Long |
scard(String key) |
String |
set(String key,
String value) |
String |
set(String key,
String value,
SetParams params) |
Boolean |
setbit(String key,
long offset,
boolean value) |
Boolean |
setbit(String key,
long offset,
String value) |
String |
setex(String key,
int seconds,
String value) |
Long |
setnx(String key,
String value) |
Long |
setrange(String key,
long offset,
String value) |
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... member) |
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,
StreamEntryID id,
Map<String,String> hash)
XADD key ID field string [field string ...]
|
StreamEntryID |
xadd(String key,
StreamEntryID id,
Map<String,String> hash,
long maxLen,
boolean approximateLength)
XADD key MAXLEN ~ LEN ID field string [field string ...]
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
StreamEntryID... ids)
XCLAIM
|
long |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
String |
xgroupCreate(String key,
String groupname,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
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
|
List<StreamPendingEntry> |
xpending(String key,
String groupname,
StreamEntryID start,
StreamEntryID end,
int count,
String consumername)
XPENDING key group [start end count] [consumer]
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
int count)
XRANGE key start end [COUNT count]
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count)
XREVRANGE key end start [COUNT
|
long |
xtrim(String key,
long maxLen,
boolean approximate)
XTRIM key MAXLEN [~] count
|
Long |
zadd(String key,
double score,
String member) |
Long |
zadd(String key,
double score,
String member,
ZAddParams params) |
Long |
zadd(String key,
Map<String,Double> scoreMembers) |
Long |
zadd(String key,
Map<String,Double> scoreMembers,
ZAddParams params) |
Long |
zcard(String key) |
Long |
zcount(String key,
double min,
double max) |
Long |
zcount(String key,
String min,
String max) |
Double |
zincrby(String key,
double increment,
String member) |
Double |
zincrby(String key,
double increment,
String member,
ZIncrByParams params) |
Long |
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) |
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) |
byte[] dump(String key)
Long lpos(String key, String element, LPosParams params)
List<Long> lpos(String key, String element, LPosParams params, long count)
Long zadd(String key, double score, String member, ZAddParams params)
Double zincrby(String key, double increment, String member, ZIncrByParams params)
List<String> sort(String key, SortingParams sortingParameters)
Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
Long linsert(String key, ListPosition where, String pivot, String value)
Long bitpos(String key, boolean value, BitPosParams params)
ScanResult<Map.Entry<String,String>> hscan(String key, String cursor, ScanParams params)
ScanResult<String> sscan(String key, String cursor)
ScanResult<Tuple> zscan(String key, String cursor)
ScanResult<Tuple> zscan(String key, String cursor, ScanParams params)
ScanResult<String> sscan(String key, String cursor, ScanParams params)
long pfcount(String key)
Long geoadd(String key, Map<String,GeoCoordinate> memberCoordinateMap)
List<GeoCoordinate> geopos(String key, String... members)
List<GeoRadiusResponse> georadius(String key, double longitude, double latitude, double radius, GeoUnit unit)
List<GeoRadiusResponse> georadiusReadonly(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> georadiusReadonly(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> georadiusByMemberReadonly(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, GeoRadiusParam param)
List<Long> bitfield(String key, String... arguments)
key
- arguments
- Long hstrlen(String key, String field)
key
- field
- StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
key
- id
- hash
- StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
key
- id
- hash
- maxLen
- approximateLength
- List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
key
- start
- 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 returnedList<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
key
- start
- 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
- The entries with IDs matching the specified range.long xack(String key, String group, StreamEntryID... ids)
key
- group
- ids
- String xgroupCreate(String key, String groupname, StreamEntryID id, boolean makeStream)
key
- groupname
- id
- makeStream
- String xgroupSetID(String key, String groupname, StreamEntryID id)
key
- groupname
- id
- long xgroupDestroy(String key, String groupname)
key
- groupname
- Long xgroupDelConsumer(String key, String groupname, String consumername)
key
- groupname
- consumername
- List<StreamPendingEntry> xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
key
- groupname
- start
- end
- count
- consumername
- long xdel(String key, StreamEntryID... ids)
key
- ids
- long xtrim(String key, long maxLen, boolean approximate)
key
- maxLen
- approximate
- List<StreamEntry> xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
StreamInfo xinfoStream(String key)
key
- Stream nameStreamInfo
that contains information about the streamList<StreamGroupInfo> xinfoGroup(String key)
key
- Stream nameStreamGroupInfo
containing information about groupsList<StreamConsumersInfo> xinfoConsumers(String key, String group)
key
- Stream namegroup
- Group nameStreamConsumersInfo
containing information about consumers that belong
to the the groupCopyright © 2021. All rights reserved.