public interface Commands
Modifier and Type | Method and Description |
---|---|
void |
append(String key,
String value) |
void |
bgrewriteaof() |
void |
bgsave() |
void |
bitcount(String key) |
void |
bitcount(String key,
long start,
long end) |
void |
bitfield(String key,
String... arguments)
Used for BITFIELD Redis command
|
void |
bitfieldReadonly(String key,
String... arguments) |
void |
bitop(BitOP op,
String destKey,
String... srcKeys) |
void |
blmove(String srcKey,
String dstKey,
ListDirection from,
ListDirection to,
double timeout) |
void |
blpop(double timeout,
String... keys) |
void |
blpop(int timeout,
String... keys) |
void |
blpop(String[] args) |
void |
brpop(double timeout,
String... keys) |
void |
brpop(int timeout,
String... keys) |
void |
brpop(String[] args) |
void |
brpoplpush(String source,
String destination,
int timeout) |
void |
bzpopmax(double timeout,
String... keys) |
void |
bzpopmin(double timeout,
String... keys) |
void |
clientGetname() |
void |
clientId() |
void |
clientInfo() |
void |
clientKill(ClientKillParams params) |
void |
clientKill(String ipPort) |
void |
clientKill(String ip,
int port) |
void |
clientList() |
void |
clientList(ClientType type) |
void |
clientList(long... clientIds) |
void |
clientSetname(String name) |
void |
clientUnblock(long clientId,
UnblockType unblockType) |
void |
configGet(String pattern) |
void |
configResetStat() |
void |
configSet(String parameter,
String value) |
void |
copy(String srcKey,
String dstKey,
boolean replace) |
void |
copy(String srcKey,
String dstKey,
int db,
boolean replace) |
void |
decr(String key) |
void |
decrBy(String key,
long decrement) |
void |
del(String... keys) |
void |
discard() |
void |
dump(String key) |
void |
echo(String string) |
void |
exec() |
void |
exists(String... keys) |
default void |
expire(String key,
int seconds)
Deprecated.
|
void |
expire(String key,
long seconds) |
void |
expireAt(String key,
long unixTime) |
void |
get(String key) |
void |
getbit(String key,
long offset) |
void |
getDel(String key) |
void |
getEx(String key,
GetExParams params) |
void |
getrange(String key,
long startOffset,
long endOffset) |
void |
getSet(String key,
String value) |
void |
hdel(String key,
String... fields) |
void |
hexists(String key,
String field) |
void |
hget(String key,
String field) |
void |
hgetAll(String key) |
void |
hincrBy(String key,
String field,
long value) |
void |
hincrByFloat(String key,
String field,
double value) |
void |
hkeys(String key) |
void |
hlen(String key) |
void |
hmget(String key,
String... fields) |
void |
hmset(String key,
Map<String,String> hash) |
void |
hrandfield(String key) |
void |
hrandfield(String key,
long count) |
void |
hrandfieldWithValues(String key,
long count) |
void |
hscan(String key,
String cursor,
ScanParams params) |
void |
hset(String key,
Map<String,String> hash) |
void |
hset(String key,
String field,
String value) |
void |
hsetnx(String key,
String field,
String value) |
void |
hstrlen(String key,
String field)
Used for HSTRLEN Redis command
|
void |
hvals(String key) |
void |
incr(String key) |
void |
incrBy(String key,
long increment) |
void |
incrByFloat(String key,
double increment) |
void |
keys(String pattern) |
void |
lastsave() |
void |
lindex(String key,
long index) |
void |
linsert(String key,
ListPosition where,
String pivot,
String value) |
void |
llen(String key) |
void |
lmove(String srcKey,
String dstKey,
ListDirection from,
ListDirection to) |
void |
lpop(String key) |
void |
lpop(String key,
int count) |
void |
lpos(String key,
String element) |
void |
lpos(String key,
String element,
LPosParams params) |
void |
lpos(String key,
String element,
LPosParams params,
long count) |
void |
lpush(String key,
String... strings) |
void |
lpushx(String key,
String... string) |
void |
lrange(String key,
long start,
long stop) |
void |
lrem(String key,
long count,
String value) |
void |
lset(String key,
long index,
String value) |
void |
ltrim(String key,
long start,
long stop) |
void |
memoryDoctor() |
void |
mget(String... keys) |
void |
migrate(String host,
int port,
byte[] key,
int destinationDB,
int timeout) |
void |
migrate(String host,
int port,
int destinationDB,
int timeout,
MigrateParams params,
byte[]... keys) |
void |
migrate(String host,
int port,
int destinationDB,
int timeout,
MigrateParams params,
String... keys) |
void |
migrate(String host,
int port,
String key,
int destinationDB,
int timeout) |
void |
move(String key,
int dbIndex) |
void |
mset(String... keysvalues) |
void |
msetnx(String... keysvalues) |
void |
multi() |
void |
objectEncoding(String key) |
void |
objectFreq(String key) |
void |
objectHelp() |
void |
objectIdletime(String key) |
void |
objectRefcount(String key) |
void |
persist(String key) |
void |
ping(String message) |
void |
pttl(String key) |
void |
rename(String oldkey,
String newkey) |
void |
renamenx(String oldkey,
String newkey) |
default void |
restore(String key,
int ttl,
byte[] serializedValue)
Deprecated.
|
void |
restore(String key,
long ttl,
byte[] serializedValue) |
void |
restore(String key,
long ttl,
byte[] serializedValue,
RestoreParams params) |
default void |
restoreReplace(String key,
int ttl,
byte[] serializedValue)
|
void |
restoreReplace(String key,
long ttl,
byte[] serializedValue)
|
void |
rpop(String key) |
void |
rpop(String key,
int count) |
void |
rpoplpush(String srckey,
String dstkey) |
void |
rpush(String key,
String... strings) |
void |
rpushx(String key,
String... string) |
void |
sadd(String key,
String... members) |
void |
save() |
void |
scan(String cursor,
ScanParams params) |
void |
scan(String cursor,
ScanParams params,
String type) |
void |
scard(String key) |
void |
sdiff(String... keys) |
void |
sdiffstore(String dstkey,
String... keys) |
void |
set(String key,
String value) |
void |
set(String key,
String value,
SetParams params) |
void |
setbit(String key,
long offset,
boolean value) |
void |
setbit(String key,
long offset,
String value) |
default void |
setex(String key,
int seconds,
String value)
Deprecated.
|
void |
setex(String key,
long seconds,
String value) |
void |
setnx(String key,
String value) |
void |
setrange(String key,
long offset,
String value) |
void |
sinter(String... keys) |
void |
sinterstore(String dstkey,
String... keys) |
void |
sismember(String key,
String member) |
void |
smembers(String key) |
void |
smismember(String key,
String... members) |
void |
smove(String srckey,
String dstkey,
String member) |
void |
sort(String key) |
void |
sort(String key,
SortingParams sortingParameters) |
void |
sort(String key,
SortingParams sortingParameters,
String dstkey) |
void |
sort(String key,
String dstkey) |
void |
spop(String key) |
void |
spop(String key,
long count) |
void |
srandmember(String key) |
void |
srem(String key,
String... member) |
void |
sscan(String key,
String cursor,
ScanParams params) |
void |
strAlgoLCSKeys(String keyA,
String keyB,
StrAlgoLCSParams params) |
void |
strAlgoLCSStrings(String strA,
String strB,
StrAlgoLCSParams params) |
void |
strlen(String key) |
void |
substr(String key,
int start,
int end) |
void |
sunion(String... keys) |
void |
sunionstore(String dstkey,
String... keys) |
void |
touch(String... keys) |
void |
ttl(String key) |
void |
type(String key) |
void |
unlink(String... keys) |
void |
waitReplicas(int replicas,
long timeout) |
void |
watch(String... keys) |
void |
xack(String key,
String group,
StreamEntryID... ids) |
void |
xadd(String key,
Map<String,String> hash,
XAddParams params) |
void |
xadd(String key,
StreamEntryID id,
Map<String,String> hash,
long maxLen,
boolean approximateLength) |
void |
xautoclaim(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params) |
void |
xautoclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params) |
void |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
StreamEntryID... ids) |
void |
xclaim(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids) |
void |
xclaimJustId(String key,
String group,
String consumername,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids) |
void |
xdel(String key,
StreamEntryID... ids) |
void |
xgroupCreate(String key,
String consumer,
StreamEntryID id,
boolean makeStream) |
void |
xgroupDelConsumer(String key,
String consumer,
String consumerName) |
void |
xgroupDestroy(String key,
String consumer) |
void |
xgroupSetID(String key,
String consumer,
StreamEntryID id) |
void |
xinfoConsumers(String key,
String group) |
void |
xinfoGroup(String key) |
void |
xinfoStream(String key) |
void |
xlen(String key) |
void |
xpending(String key,
String groupname) |
void |
xpending(String key,
String groupname,
StreamEntryID start,
StreamEntryID end,
int count,
String consumername) |
void |
xpending(String key,
String groupname,
XPendingParams params) |
void |
xrange(String key,
StreamEntryID start,
StreamEntryID end) |
void |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
int count) |
void |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
long count)
|
void |
xread(int count,
long block,
Map.Entry<String,StreamEntryID>... streams)
Deprecated.
This method will be removed due to bug regarding
block param. Use
xread(redis.clients.jedis.params.XReadParams, java.util.Map) . |
void |
xread(XReadParams params,
Map<String,StreamEntryID> streams) |
void |
xreadGroup(String groupname,
String consumer,
int count,
long block,
boolean noAck,
Map.Entry<String,StreamEntryID>... streams)
Deprecated.
This method will be removed due to bug regarding
block param. Use
xreadGroup(java.lang.String, java.lang.String, redis.clients.jedis.params.XReadGroupParams, java.util.Map) . |
void |
xreadGroup(String groupname,
String consumer,
XReadGroupParams params,
Map<String,StreamEntryID> streams) |
void |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start) |
void |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count) |
void |
xtrim(String key,
long maxLen,
boolean approximateLength) |
void |
xtrim(String key,
XTrimParams params) |
void |
zadd(String key,
double score,
String member) |
void |
zadd(String key,
double score,
String member,
ZAddParams params) |
void |
zadd(String key,
Map<String,Double> scoreMembers) |
void |
zadd(String key,
Map<String,Double> scoreMembers,
ZAddParams params) |
void |
zaddIncr(String key,
double score,
String member,
ZAddParams params) |
void |
zcard(String key) |
void |
zcount(String key,
double min,
double max) |
void |
zcount(String key,
String min,
String max) |
void |
zdiff(String... keys) |
void |
zdiffStore(String dstkey,
String... keys) |
void |
zdiffWithScores(String... keys) |
void |
zincrby(String key,
double increment,
String member) |
void |
zincrby(String key,
double increment,
String member,
ZIncrByParams params) |
void |
zinter(ZParams params,
String... keys) |
void |
zinterstore(String dstkey,
String... sets) |
void |
zinterstore(String dstkey,
ZParams params,
String... sets) |
void |
zinterWithScores(ZParams params,
String... keys) |
void |
zmscore(String key,
String... members) |
void |
zpopmax(String key) |
void |
zpopmax(String key,
int count) |
void |
zpopmin(String key) |
void |
zpopmin(String key,
long count) |
void |
zrandmember(String key) |
void |
zrandmember(String key,
long count) |
void |
zrandmemberWithScores(String key,
long count) |
void |
zrange(String key,
long start,
long stop) |
void |
zrangeByScore(String key,
double min,
double max) |
void |
zrangeByScore(String key,
double min,
double max,
int offset,
int count) |
void |
zrangeByScore(String key,
String min,
String max) |
void |
zrangeByScore(String key,
String min,
String max,
int offset,
int count) |
void |
zrangeByScoreWithScores(String key,
double min,
double max) |
void |
zrangeByScoreWithScores(String key,
double min,
double max,
int offset,
int count) |
void |
zrangeByScoreWithScores(String key,
String min,
String max) |
void |
zrangeByScoreWithScores(String key,
String min,
String max,
int offset,
int count) |
void |
zrangeWithScores(String key,
long start,
long stop) |
void |
zrank(String key,
String member) |
void |
zrem(String key,
String... members) |
void |
zremrangeByRank(String key,
long start,
long stop) |
void |
zremrangeByScore(String key,
double min,
double max) |
void |
zremrangeByScore(String key,
String min,
String max) |
void |
zrevrange(String key,
long start,
long stop) |
void |
zrevrangeByScore(String key,
double max,
double min) |
void |
zrevrangeByScore(String key,
double max,
double min,
int offset,
int count) |
void |
zrevrangeByScore(String key,
String max,
String min) |
void |
zrevrangeByScore(String key,
String max,
String min,
int offset,
int count) |
void |
zrevrangeByScoreWithScores(String key,
double max,
double min) |
void |
zrevrangeByScoreWithScores(String key,
double max,
double min,
int offset,
int count) |
void |
zrevrangeByScoreWithScores(String key,
String max,
String min) |
void |
zrevrangeByScoreWithScores(String key,
String max,
String min,
int offset,
int count) |
void |
zrevrangeWithScores(String key,
long start,
long stop) |
void |
zrevrank(String key,
String member) |
void |
zscan(String key,
String cursor,
ScanParams params) |
void |
zscore(String key,
String member) |
void |
zunion(ZParams params,
String... keys) |
void |
zunionstore(String dstkey,
String... sets) |
void |
zunionstore(String dstkey,
ZParams params,
String... sets) |
void |
zunionWithScores(ZParams params,
String... keys) |
void ping(String message)
void get(String key)
void getDel(String key)
void getEx(String key, GetExParams params)
void exists(String... keys)
void del(String... keys)
void unlink(String... keys)
void type(String key)
void keys(String pattern)
@Deprecated default void expire(String key, int seconds)
expire(java.lang.String, long)
.void expire(String key, long seconds)
void expireAt(String key, long unixTime)
void ttl(String key)
void pttl(String key)
void touch(String... keys)
void setbit(String key, long offset, boolean value)
void getbit(String key, long offset)
void getrange(String key, long startOffset, long endOffset)
void move(String key, int dbIndex)
void mget(String... keys)
@Deprecated default void setex(String key, int seconds, String value)
setex(java.lang.String, long, java.lang.String)
.void mset(String... keysvalues)
void msetnx(String... keysvalues)
void decrBy(String key, long decrement)
void decr(String key)
void incrBy(String key, long increment)
void incrByFloat(String key, double increment)
void incr(String key)
void substr(String key, int start, int end)
void hlen(String key)
void hkeys(String key)
void hvals(String key)
void hrandfield(String key)
void hrandfield(String key, long count)
void hrandfieldWithValues(String key, long count)
void hgetAll(String key)
void llen(String key)
void lrange(String key, long start, long stop)
void ltrim(String key, long start, long stop)
void lindex(String key, long index)
void lpop(String key)
void lpop(String key, int count)
void lpos(String key, String element, LPosParams params)
void lpos(String key, String element, LPosParams params, long count)
void rpop(String key)
void rpop(String key, int count)
void smembers(String key)
void spop(String key)
void spop(String key, long count)
void scard(String key)
void sinter(String... keys)
void sunion(String... keys)
void sdiff(String... keys)
void zdiff(String... keys)
void zdiffWithScores(String... keys)
void srandmember(String key)
void zadd(String key, double score, String member, ZAddParams params)
void zadd(String key, Map<String,Double> scoreMembers, ZAddParams params)
void zaddIncr(String key, double score, String member, ZAddParams params)
void zrange(String key, long start, long stop)
void zincrby(String key, double increment, String member, ZIncrByParams params)
void zrevrange(String key, long start, long stop)
void zrangeWithScores(String key, long start, long stop)
void zrevrangeWithScores(String key, long start, long stop)
void zrandmember(String key)
void zrandmember(String key, long count)
void zrandmemberWithScores(String key, long count)
void zcard(String key)
void zpopmax(String key)
void zpopmax(String key, int count)
void zpopmin(String key)
void zpopmin(String key, long count)
void watch(String... keys)
void sort(String key)
void sort(String key, SortingParams sortingParameters)
void sort(String key, SortingParams sortingParameters, String dstkey)
void lmove(String srcKey, String dstKey, ListDirection from, ListDirection to)
void blmove(String srcKey, String dstKey, ListDirection from, ListDirection to, double timeout)
void blpop(String[] args)
void blpop(int timeout, String... keys)
void blpop(double timeout, String... keys)
void brpop(String[] args)
void brpop(int timeout, String... keys)
void brpop(double timeout, String... keys)
void bzpopmax(double timeout, String... keys)
void bzpopmin(double timeout, String... keys)
void zcount(String key, double min, double max)
void zrangeByScore(String key, double min, double max)
void zrangeByScore(String key, double min, double max, int offset, int count)
void zrangeByScoreWithScores(String key, double min, double max)
void zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
void zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
void zrevrangeByScore(String key, double max, double min)
void zrevrangeByScore(String key, double max, double min, int offset, int count)
void zrevrangeByScoreWithScores(String key, double max, double min)
void zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
void zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
void zremrangeByRank(String key, long start, long stop)
void zremrangeByScore(String key, double min, double max)
void strlen(String key)
void persist(String key)
void echo(String string)
void linsert(String key, ListPosition where, String pivot, String value)
void bgrewriteaof()
void bgsave()
void lastsave()
void save()
void configGet(String pattern)
void configResetStat()
void multi()
void exec()
void discard()
void objectRefcount(String key)
void objectIdletime(String key)
void objectEncoding(String key)
void objectHelp()
void objectFreq(String key)
void bitcount(String key)
void bitcount(String key, long start, long end)
void dump(String key)
@Deprecated default void restore(String key, int ttl, byte[] serializedValue)
restore(java.lang.String, long, byte[])
.void restore(String key, long ttl, byte[] serializedValue)
@Deprecated default void restoreReplace(String key, int ttl, byte[] serializedValue)
@Deprecated void restoreReplace(String key, long ttl, byte[] serializedValue)
void restore(String key, long ttl, byte[] serializedValue, RestoreParams params)
void scan(String cursor, ScanParams params)
void scan(String cursor, ScanParams params, String type)
void hscan(String key, String cursor, ScanParams params)
void sscan(String key, String cursor, ScanParams params)
void zscan(String key, String cursor, ScanParams params)
void waitReplicas(int replicas, long timeout)
void bitfield(String key, String... arguments)
key
- arguments
- void hstrlen(String key, String field)
key
- field
- void migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, String... keys)
void migrate(String host, int port, byte[] key, int destinationDB, int timeout)
void migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, byte[]... keys)
void clientKill(String ipPort)
void clientKill(String ip, int port)
void clientKill(ClientKillParams params)
void clientGetname()
void clientList()
void clientList(ClientType type)
void clientList(long... clientIds)
void clientInfo()
void clientSetname(String name)
void clientId()
void clientUnblock(long clientId, UnblockType unblockType)
void memoryDoctor()
void xadd(String key, StreamEntryID id, Map<String,String> hash, long maxLen, boolean approximateLength)
void xadd(String key, Map<String,String> hash, XAddParams params)
void xlen(String key)
void xrange(String key, StreamEntryID start, StreamEntryID end)
void xrange(String key, StreamEntryID start, StreamEntryID end, int count)
@Deprecated void xrange(String key, StreamEntryID start, StreamEntryID end, long count)
void xrevrange(String key, StreamEntryID end, StreamEntryID start)
void xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
@Deprecated void xread(int count, long block, Map.Entry<String,StreamEntryID>... streams)
block
param. Use
xread(redis.clients.jedis.params.XReadParams, java.util.Map)
.void xread(XReadParams params, Map<String,StreamEntryID> streams)
void xack(String key, String group, StreamEntryID... ids)
void xgroupCreate(String key, String consumer, StreamEntryID id, boolean makeStream)
void xgroupSetID(String key, String consumer, StreamEntryID id)
void xdel(String key, StreamEntryID... ids)
void xtrim(String key, long maxLen, boolean approximateLength)
void xtrim(String key, XTrimParams params)
@Deprecated void xreadGroup(String groupname, String consumer, int count, long block, boolean noAck, Map.Entry<String,StreamEntryID>... streams)
block
param. Use
xreadGroup(java.lang.String, java.lang.String, redis.clients.jedis.params.XReadGroupParams, java.util.Map)
.void xreadGroup(String groupname, String consumer, XReadGroupParams params, Map<String,StreamEntryID> streams)
void xpending(String key, String groupname, StreamEntryID start, StreamEntryID end, int count, String consumername)
void xpending(String key, String groupname, XPendingParams params)
void xclaim(String key, String group, String consumername, long minIdleTime, long newIdleTime, int retries, boolean force, StreamEntryID... ids)
void xclaim(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
void xclaimJustId(String key, String group, String consumername, long minIdleTime, XClaimParams params, StreamEntryID... ids)
void xautoclaim(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
void xautoclaimJustId(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
void xinfoStream(String key)
void xinfoGroup(String key)
void strAlgoLCSKeys(String keyA, String keyB, StrAlgoLCSParams params)
void strAlgoLCSStrings(String strA, String strB, StrAlgoLCSParams params)
Copyright © 2022. All rights reserved.