Skip to content

Support Commands

Ruixiang Tan edited this page Oct 29, 2022 · 12 revisions

String Commands

Command Supported OR Not Desc
append
decr
decrby
get
getrange
getset
incr
incrby
incrbyfloat
mget
mset
msetnx
psetex only supports second
set
setex
setnx
setrange
strlen
unlink
cas see https://github.com/KvrocksLabs/kvrocks/pull/415
cad see https://github.com/KvrocksLabs/kvrocks/pull/415

Hash Commands

Command Supported OR Not Desc
hdel
hexists
hget
hgetall
hincrby
hincrbyfloat
hkeys
hlen
hmget
hmset
hset
hsetnx
hstrlen
hvals
hscan

List Commands

Command Supported OR Not Desc
blpop
brpop
brpoplpush X
lindex Caution: linsert is O(N) operation, don't use it when list was extreme long
linsert
llen
lpop
lpush
lpushx
lrange
lrem Caution: lrem is O(N) operation, don't use it when list was extreme long
lset
ltrim Caution: ltrim is O(N) operation, don't use it when list was extreme long
rpop
rpoplpush
rpush
rpushx
lmove

Set Commands

Command Supported OR Not Desc
sadd
scard
sdiff
sdiffstore
sinter
sinterstore
sismember
smembers
smove
spop pop the member with key oreder
srandmember always first N members if not changed
srem
sunion
sunionstore
sscan

ZSet Commands

Command Supported OR Not Desc
bzpopmin X
bzpopmax X
zadd
zcard
zcount
zincrby
zinterstore
zlexcount
zpopmin
zpopmax
zrange
zrangebylex
zrangebyscore
zrank
zrem
zremrangebylex
zremrangebyrank
zremrangebyscore
zrevrank
zrevrange
zrevrangebylex
zrevrangebyscore
zscan
zscore
zmscore multi zscore
zunionstore

Key Commands

Command Supported OR Not Desc
del
dump X
exists
expire
expireat
keys
persist
pexpire precision is seconds
pexpireat precision is seconds
pttl
ttl
type
scan
rename X
randomkey

Bit Commands

Command Supported OR Not Desc
getbit
setbit
bitcount
bitpos
bitfield X
bitop

NOTE : String and Bitmap is different type in kvrocks, so you can't do bit with string, vice versa.

Script Commands

Command Supported OR Not Desc
eval
evalsha
script script kill and debug subcommand are not supported

Pub/Sub Commands

Command Supported OR Not Desc
psubscribe
publish
pubsub
punsubscribe
subscribe
unsubscribe

Transaction Commands

Command Supported OR Not Desc
multi
exec
discard
watch X
unwatch X

Sortedint Commands

Command Supported OR Not Desc
sicard like scard
siadd like sadd, but member is int
sirem like srem, but member is int
sirange sirange key offset count cursor since_id
sirevrange sirevrange key offset count cursor max_id
siexists siexists key member1 (member2 ...)
sirangebyvalue sirangebyvalue key min max (LIMIT offset count)
sirevrangebyvalue sirevrangebyvalue key max min (LIMIT offset count)

Cluster Subcommands

Subcommand Supported OR Not Desc
info
nodes
slots
keyslot

Server Commands

Command Supported OR Not Desc
monitor
info
role
config
dbsize
disk disk usage user_key to get the disk usage of the user_key, see details: https://github.com/apache/incubator-kvrocks/issues/874
namespace
flushdb
flushall
command
client
quit
slowlog
perflog
hello

NOTE : The db size was updated async after execute dbsize scan command

GEO Commands

Command Supported OR Not Desc
geoadd
geodist
geohash
geopos
georadius
georadiusbymember

Hyperloglog Commands

Not Supported