Skip to content

Latest commit

 

History

History
489 lines (483 loc) · 28 KB

compat.md

File metadata and controls

489 lines (483 loc) · 28 KB

Supported commands Commands Coverage: 66%

PRs welcome ❤️

redis ioredis ioredis-mock
acl
append
asking
auth
bgrewriteaof
bgsave
bitcount
bitfield
bitfield_ro
bitop
bitpos
blmove
blmpop
blpop
brpop
brpoplpush
bzmpop
bzpopmax
bzpopmin
client
cluster
command
config
copy
dbsize
decr
decrby
del
discard
echo
eval
eval_ro
evalsha
evalsha_ro
exists
expire
expireat
expiretime
failover
fcall
fcall_ro
flushall
flushdb
function
geoadd
geodist
geohash
geopos
georadius
georadius_ro
georadiusbymember
georadiusbymember_ro
geosearch
geosearchstore
get
getbit
getdel
getex
getrange
getset
hdel
hexists
hget
hgetall
hincrby
hincrbyfloat
hkeys
hlen
hmget
hmset
hrandfield
hscan
hset
hsetnx
hstrlen
hvals
incr
incrby
incrbyfloat
info
keys
lastsave
lcs
lindex
linsert
llen
lmove
lmpop
lolwut
lpop
lpos
lpush
lpushx
lrange
lrem
lset
ltrim
mget
monitor
move
mset
msetnx
object
persist
pexpire
pexpireat
pexpiretime
pfadd
pfcount
pfmerge
ping
psetex
psubscribe
psync
pttl
publish
pubsub
punsubscribe
quit
randomkey
readonly
readwrite
rename
renamenx
replconf
replicaof
reset
role
rpop
rpoplpush
rpush
rpushx
sadd
save
scan
scard
script
sdiff
sdiffstore
select
set
setbit
setex
setnx
setrange
shutdown
sinter
sintercard
sinterstore
sismember
slaveof
smembers
smismember
smove
sort
sort_ro
spop
spublish
srandmember
srem
sscan
ssubscribe
strlen
subscribe
substr
sunion
sunionstore
sunsubscribe
swapdb
sync
time
touch
ttl
type
unlink
unsubscribe
unwatch
wait
waitaof
watch
xack
xadd
xautoclaim
xclaim
xdel
xgroup
xinfo
xlen
xpending
xrange
xread
xreadgroup
xrevrange
xsetid
xtrim
zadd
zcard
zcount
zdiff
zdiffstore
zincrby
zinter
zintercard
zinterstore
zlexcount
zmpop
zmscore
zpopmax
zpopmin
zrandmember
zrange
zrangebylex
zrangebyscore
zrangestore
zrank
zrem
zremrangebylex
zremrangebyrank
zremrangebyscore
zrevrange
zrevrangebylex
zrevrangebyscore
zrevrank
zscan
zscore
zunion
zunionstore

Commands that won't be implemented

This is just the current status, and may change in the future. If you have ideas on how to implement any of them feel free to tell us about it.

redis why it doesn't make sense to emulate
debug This command is intended to aid in debugging redis
dump Doesn't make sense to implement the internal data format used by RDB
hello The protocols this command is switching between (RESP2, RESP3, Redis 6) aren't in use
latency ioredis-mock isn't operating over the network so there is no latency to monitor
memory It's unlikely this can be emulated in a JS environment
migrate This command actually executes a DUMP + DEL on the source instance, and a RESTORE in the target. Since DUMP and RESTORE won't be implemented it includes MIGRATE.
module It's unlikely that we'll be able to run Redis Modules in a JS VM
pfdebug This command is intended to aid in debugging redis
restore The RDB specific format used for restores would be a massive undertaking to implement with very little gain.
slowlog Useful when you're on redis, not so much when on ioredis-mock