2022-06-06 12:50:41 +00:00
|
|
|
The following document describes the current API status
|
|
|
|
with respect to Memcached and Redis APIs.
|
|
|
|
|
|
|
|
## Memcache API
|
|
|
|
- [X] set
|
|
|
|
- [X] get
|
|
|
|
- [X] replace
|
|
|
|
- [X] add
|
|
|
|
- [X] stats (partial)
|
|
|
|
- [x] append
|
|
|
|
- [x] prepend
|
|
|
|
- [x] delete
|
|
|
|
- [x] flush_all
|
|
|
|
- [x] incr
|
|
|
|
- [x] decr
|
|
|
|
- [x] version
|
|
|
|
- [x] quit
|
|
|
|
|
|
|
|
|
|
|
|
## Redis API
|
|
|
|
|
|
|
|
### API 1
|
|
|
|
- [X] String family
|
|
|
|
- [X] SET
|
2022-09-13 17:13:34 +00:00
|
|
|
- [X] SETNX
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] GET
|
|
|
|
- [X] DECR
|
|
|
|
- [X] INCR
|
|
|
|
- [X] DECRBY
|
|
|
|
- [X] GETSET
|
|
|
|
- [X] INCRBY
|
|
|
|
- [X] MGET
|
|
|
|
- [X] MSET
|
|
|
|
- [X] MSETNX
|
|
|
|
- [X] SUBSTR
|
|
|
|
- [x] Generic family
|
|
|
|
- [X] DEL
|
|
|
|
- [X] ECHO
|
|
|
|
- [X] EXISTS
|
|
|
|
- [X] EXPIRE
|
|
|
|
- [X] EXPIREAT
|
|
|
|
- [X] KEYS
|
2022-09-18 17:57:12 +00:00
|
|
|
- [X] MOVE
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] PING
|
|
|
|
- [X] RENAME
|
|
|
|
- [X] RENAMENX
|
|
|
|
- [X] SELECT
|
|
|
|
- [X] TTL
|
|
|
|
- [X] TYPE
|
|
|
|
- [ ] SORT
|
|
|
|
- [X] Server Family
|
|
|
|
- [X] AUTH
|
|
|
|
- [X] QUIT
|
|
|
|
- [X] DBSIZE
|
|
|
|
- [ ] BGSAVE
|
|
|
|
- [X] SAVE
|
|
|
|
- [X] DEBUG
|
|
|
|
- [X] EXEC
|
|
|
|
- [X] FLUSHALL
|
|
|
|
- [X] FLUSHDB
|
2022-06-06 15:17:40 +00:00
|
|
|
- [X] HELLO
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] INFO
|
|
|
|
- [X] MULTI
|
|
|
|
- [X] SHUTDOWN
|
|
|
|
- [X] LASTSAVE
|
|
|
|
- [X] SLAVEOF/REPLICAOF
|
|
|
|
- [ ] SYNC
|
|
|
|
- [X] Set Family
|
|
|
|
- [x] SADD
|
|
|
|
- [x] SCARD
|
|
|
|
- [X] SDIFF
|
|
|
|
- [X] SDIFFSTORE
|
|
|
|
- [X] SINTER
|
|
|
|
- [X] SINTERSTORE
|
|
|
|
- [X] SISMEMBER
|
|
|
|
- [X] SMOVE
|
|
|
|
- [X] SPOP
|
|
|
|
- [ ] SRANDMEMBER
|
|
|
|
- [X] SREM
|
|
|
|
- [X] SMEMBERS
|
|
|
|
- [X] SUNION
|
|
|
|
- [X] SUNIONSTORE
|
|
|
|
- [X] List Family
|
|
|
|
- [X] LINDEX
|
|
|
|
- [X] LLEN
|
|
|
|
- [X] LPOP
|
|
|
|
- [X] LPUSH
|
|
|
|
- [X] LRANGE
|
|
|
|
- [X] LREM
|
|
|
|
- [X] LSET
|
|
|
|
- [X] LTRIM
|
|
|
|
- [X] RPOP
|
|
|
|
- [X] RPOPLPUSH
|
|
|
|
- [X] RPUSH
|
|
|
|
- [X] SortedSet Family
|
|
|
|
- [X] ZADD
|
|
|
|
- [X] ZCARD
|
|
|
|
- [X] ZINCRBY
|
|
|
|
- [X] ZRANGE
|
|
|
|
- [X] ZRANGEBYSCORE
|
|
|
|
- [X] ZREM
|
|
|
|
- [X] ZREMRANGEBYSCORE
|
|
|
|
- [X] ZREVRANGE
|
|
|
|
- [X] ZSCORE
|
|
|
|
- [ ] Other
|
|
|
|
- [ ] BGREWRITEAOF
|
|
|
|
- [ ] MONITOR
|
|
|
|
- [ ] RANDOMKEY
|
|
|
|
|
|
|
|
### API 2
|
|
|
|
- [X] List Family
|
|
|
|
- [X] BLPOP
|
|
|
|
- [X] BRPOP
|
|
|
|
- [ ] BRPOPLPUSH
|
|
|
|
- [X] LINSERT
|
|
|
|
- [X] LPUSHX
|
|
|
|
- [X] RPUSHX
|
|
|
|
- [X] String Family
|
|
|
|
- [X] SETEX
|
|
|
|
- [X] APPEND
|
|
|
|
- [X] PREPEND (dragonfly specific)
|
2022-09-20 08:07:26 +00:00
|
|
|
- [x] BITCOUNT
|
2022-06-06 12:50:41 +00:00
|
|
|
- [ ] BITFIELD
|
2022-09-28 16:32:30 +00:00
|
|
|
- [x] BITOP
|
2022-06-06 12:50:41 +00:00
|
|
|
- [ ] BITPOS
|
2022-09-18 13:20:51 +00:00
|
|
|
- [x] GETBIT
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] GETRANGE
|
|
|
|
- [X] INCRBYFLOAT
|
|
|
|
- [X] PSETEX
|
2022-09-18 13:20:51 +00:00
|
|
|
- [x] SETBIT
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] SETRANGE
|
|
|
|
- [X] STRLEN
|
|
|
|
- [X] HashSet Family
|
|
|
|
- [X] HSET
|
|
|
|
- [X] HMSET
|
|
|
|
- [X] HDEL
|
|
|
|
- [X] HEXISTS
|
|
|
|
- [X] HGET
|
|
|
|
- [X] HMGET
|
|
|
|
- [X] HLEN
|
|
|
|
- [X] HINCRBY
|
|
|
|
- [X] HINCRBYFLOAT
|
|
|
|
- [X] HGETALL
|
|
|
|
- [X] HKEYS
|
|
|
|
- [X] HSETNX
|
|
|
|
- [X] HVALS
|
|
|
|
- [X] HSCAN
|
|
|
|
- [X] PubSub family
|
|
|
|
- [X] PUBLISH
|
2022-07-04 17:15:27 +00:00
|
|
|
- [X] PUBSUB
|
|
|
|
- [X] PUBSUB CHANNELS
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] SUBSCRIBE
|
|
|
|
- [X] UNSUBSCRIBE
|
|
|
|
- [X] PSUBSCRIBE
|
|
|
|
- [X] PUNSUBSCRIBE
|
|
|
|
- [X] Server Family
|
2022-09-13 17:13:34 +00:00
|
|
|
- [X] WATCH
|
|
|
|
- [X] UNWATCH
|
2022-06-06 12:50:41 +00:00
|
|
|
- [X] DISCARD
|
|
|
|
- [X] CLIENT LIST/SETNAME
|
|
|
|
- [ ] CLIENT KILL/UNPAUSE/PAUSE/GETNAME/REPLY/TRACKINGINFO
|
|
|
|
- [X] COMMAND
|
|
|
|
- [X] COMMAND COUNT
|
|
|
|
- [ ] COMMAND GETKEYS/INFO
|
|
|
|
- [ ] CONFIG GET/REWRITE/SET/RESETSTAT
|
|
|
|
- [ ] MIGRATE
|
|
|
|
- [ ] ROLE
|
|
|
|
- [ ] SLOWLOG
|
|
|
|
- [ ] PSYNC
|
|
|
|
- [ ] TIME
|
|
|
|
- [ ] LATENCY...
|
|
|
|
- [X] Generic Family
|
|
|
|
- [X] SCAN
|
|
|
|
- [X] PEXPIREAT
|
|
|
|
- [ ] PEXPIRE
|
|
|
|
- [ ] DUMP
|
|
|
|
- [X] EVAL
|
|
|
|
- [X] EVALSHA
|
|
|
|
- [ ] OBJECT
|
|
|
|
- [ ] PERSIST
|
|
|
|
- [X] PTTL
|
|
|
|
- [ ] RESTORE
|
|
|
|
- [X] SCRIPT LOAD/EXISTS
|
|
|
|
- [ ] SCRIPT DEBUG/KILL/FLUSH
|
|
|
|
- [X] Set Family
|
|
|
|
- [X] SSCAN
|
|
|
|
- [X] Sorted Set Family
|
|
|
|
- [X] ZCOUNT
|
|
|
|
- [X] ZINTERSTORE
|
|
|
|
- [X] ZLEXCOUNT
|
|
|
|
- [X] ZRANGEBYLEX
|
|
|
|
- [X] ZRANK
|
|
|
|
- [X] ZREMRANGEBYLEX
|
|
|
|
- [X] ZREMRANGEBYRANK
|
|
|
|
- [X] ZREVRANGEBYSCORE
|
|
|
|
- [X] ZREVRANK
|
|
|
|
- [X] ZUNIONSTORE
|
|
|
|
- [X] ZSCAN
|
|
|
|
- [ ] HYPERLOGLOG Family
|
|
|
|
- [ ] PFADD
|
|
|
|
- [ ] PFCOUNT
|
|
|
|
- [ ] PFMERGE
|
|
|
|
|
|
|
|
### API 3
|
2022-09-13 17:13:34 +00:00
|
|
|
- [ ] Generic Family
|
|
|
|
- [ ] TOUCH
|
|
|
|
- [X] HashSet Family
|
|
|
|
- [X] HSTRLEN
|
|
|
|
- [X] Server Family
|
|
|
|
- [ ] CLIENT REPLY
|
|
|
|
- [X] REPLCONF
|
|
|
|
- [ ] WAIT
|
|
|
|
|
2022-06-06 12:50:41 +00:00
|
|
|
### API 4
|
2022-09-13 17:13:34 +00:00
|
|
|
- [X] Generic Family
|
|
|
|
- [X] UNLINK
|
|
|
|
- [ ] Server Family
|
|
|
|
- [ ] MEMORY USAGE/STATS/PURGE/DOCTOR
|
|
|
|
- [ ] SWAPDB
|
|
|
|
|
2022-06-06 12:50:41 +00:00
|
|
|
### API 5
|
2022-06-12 14:41:01 +00:00
|
|
|
- [X] Stream Family
|
|
|
|
- [X] XADD
|
|
|
|
- [ ] XCLAIM
|
|
|
|
- [X] XDEL
|
|
|
|
- [X] XGROUP CREATE/DELCONSUMER/DESTROY/HELP/SETID
|
|
|
|
- [ ] XGROUP CREATECONSUMER
|
|
|
|
- [X] XINFO GROUPS/HELP
|
|
|
|
- [ ] XINFO CONSUMERS/GROUPS/STREAM
|
|
|
|
- [X] XLEN
|
|
|
|
- [ ] XPENDING
|
|
|
|
- [X] XRANGE
|
|
|
|
- [ ] XREAD
|
|
|
|
- [ ] XREADGROUP
|
|
|
|
- [X] XREVRANGE
|
|
|
|
- [X] XSETID
|
|
|
|
- [ ] XTRIM
|
|
|
|
|
|
|
|
### API 6,7
|
|
|
|
- [ ] Stream Family
|
|
|
|
- [ ] XAUTOCLAIM
|
2022-06-06 12:50:41 +00:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
Some commands were implemented as decorators along the way:
|
|
|
|
|
|
|
|
- [X] ROLE (2.8) decorator as master.
|
|
|
|
- [X] BGSAVE (decorator for save)
|
2022-09-13 17:13:34 +00:00
|
|
|
- [X] FUNCTION FLUSH (does nothing)
|