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