Skip to content

Command index

All 326 commands the server dispatches, derived at build time from the same source as src/commands/command_table.mojo (the table MULTI uses to reject unknown commands at queue time). A command that exists in the engine appears here; a command that appears here exists in the engine. The per-command semantics, return shapes and known divergences from Redis are in the Redis-compatible command matrix; the Pion-native families each have a reference page.

count
Redis-compatible (a Redis 8 command of the same name exists) 266
Pion-native 60
Total (PION_COMMAND_COUNT) 326

Pion-native

Command Family Reference Documented in the matrix
AI.CHAT AI AI Pion-Native AI Commands
AI.COMPLETE AI AI Pion-Native AI Commands
AI.EMBED AI AI Pion-Native AI Commands
AI.FLARE AI AI Pion-Native AI Commands
AI.GENERATE AI AI Pion-Native AI Commands
AI.LOADMODEL AI AI Pion-Native AI Commands
AI.MEMORY AI AI Pion-Native AI Commands
AI.SEMANTIC_CACHE AI AI Pion-Native AI Commands
ATTEND.CREATE ATTEND ATTEND Externalized Attention Commands
ATTEND.FINALIZE ATTEND ATTEND Externalized Attention Commands
ATTEND.INFO ATTEND ATTEND Externalized Attention Commands
ATTEND.PREFIX.LOOKUP ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.QUERY ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.QUERY_FUSED ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.QUERY_SPARSE ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.QUERY_SPARSE_AUTO ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.QUERY_SPARSE_AUTO_FUSED ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.PREFIX.STORE ATTEND.PREFIX ATTEND.PREFIX Externalized Attention Commands
ATTEND.QUERY ATTEND ATTEND Externalized Attention Commands
ATTEND.STORE ATTEND ATTEND Externalized Attention Commands
FT._LIST FT FT Pion-Native AI Commands
FT.ADDTEXT FT FT Pion-Native AI Commands
FT.CREATE FT FT Pion-Native AI Commands
FT.DROPINDEX FT FT Pion-Native AI Commands
FT.HYBRID FT FT Pion-Native AI Commands
FT.INFO FT FT Pion-Native AI Commands
FT.OPTIMIZE FT FT Pion-Native AI Commands
FT.SEARCH FT FT Pion-Native AI Commands
FT.SEARCHTEXT FT FT Pion-Native AI Commands
KV.FETCH KV KV Externalized Attention Commands
KV.INFO KV KV Externalized Attention Commands
KV.PREFIX.BLOCKS KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.COMMIT KV.PREFIX KV.PREFIX —
KV.PREFIX.DROP KV.PREFIX KV.PREFIX —
KV.PREFIX.INFO KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.LOOKUP KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.MEMBERSHIP KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.OWNER KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.REGISTER KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.SAVE KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.PREFIX.WARM KV.PREFIX KV.PREFIX Externalized Attention Commands
KV.STORE KV KV Externalized Attention Commands
PION.STATS PION PION Server / Admin Commands
SSM.PREFIX.DROP SSM.PREFIX SSM.PREFIX Externalized Attention Commands
SSM.PREFIX.FETCH SSM.PREFIX SSM.PREFIX Externalized Attention Commands
SSM.PREFIX.STORE SSM.PREFIX SSM.PREFIX Externalized Attention Commands
STATE.ALLOC STATE STATE Fixed-Size State Cache
STATE.FREE STATE STATE Fixed-Size State Cache
STATE.INFO STATE STATE Fixed-Size State Cache
STATE.READ STATE STATE Fixed-Size State Cache
STATE.WRITE STATE STATE Fixed-Size State Cache
V.COMMIT V V Externalized Attention Commands
V.CREATE V V Externalized Attention Commands
V.EXPORT V V Externalized Attention Commands
V.FETCH V V Externalized Attention Commands
V.INFO V V Externalized Attention Commands
V.RESTORE V V Externalized Attention Commands
V.SNAPSHOT V V Externalized Attention Commands
V.STOREBATCH V V Externalized Attention Commands
XGPU OTHER OTHER Server / Admin Commands

Redis-compatible

Arity is Redis's own (negative = at least that many); writes marks commands Redis flags as write commands, which is what decides WAL logging and WATCH bumps.

Command Arity Writes Documented in the matrix
ACL -2 Server / Admin Commands
APPEND 3 ✓ String Commands
ASKING 1 Cluster Commands
AUTH -2 Server / Admin Commands
BGREWRITEAOF 1 Server / Admin Commands
BGSAVE -1 Server / Admin Commands
BITCOUNT -2 Bitmap Commands
BITFIELD -2 ✓ Bitmap Commands
BITFIELD_RO -2 Bitmap Commands
BITOP -4 ✓ Bitmap Commands
BITPOS -3 Bitmap Commands
BLMOVE 6 ✓ List Commands
BLMPOP -5 ✓ List Commands
BLPOP -3 ✓ List Commands
BRPOP -3 ✓ List Commands
BRPOPLPUSH 4 ✓ List Commands
BZMPOP -5 ✓ Sorted Set Commands
BZPOPMAX -3 ✓ Sorted Set Commands
BZPOPMIN -3 ✓ Sorted Set Commands
CLIENT -2 Server / Admin Commands
CLUSTER -2 Cluster Commands
COMMAND -1 Server / Admin Commands
CONFIG -2 Server / Admin Commands
COPY -3 ✓ Key / Expiry Commands
DBSIZE 1 Server / Admin Commands
DEBUG -2 Server / Admin Commands
DECR 2 ✓ String Commands
DECRBY 3 ✓ String Commands
DEL -2 ✓ Key / Expiry Commands
DISCARD 1 Transaction Commands
DUMP 2 Key / Expiry Commands
ECHO 2 String Commands
EVAL -3 Scripting & Functions
EVAL_RO -3 Scripting & Functions
EVALSHA -3 Scripting & Functions
EVALSHA_RO -3 Scripting & Functions
EXEC 1 Transaction Commands
EXISTS -2 Key / Expiry Commands
EXPIRE -3 ✓ Key / Expiry Commands
EXPIREAT -3 ✓ Key / Expiry Commands
EXPIRETIME 2 Key / Expiry Commands
FAILOVER -1 Server / Admin Commands
FCALL -3 Scripting & Functions
FCALL_RO -3 Scripting & Functions
FLUSHALL -1 ✓ Server / Admin Commands
FLUSHDB -1 ✓ Server / Admin Commands
FUNCTION -2 Scripting & Functions
GEOADD -5 ✓ Geospatial Commands
GEODIST -4 Geospatial Commands
GEOHASH -2 Geospatial Commands
GEOPOS -2 Geospatial Commands
GEORADIUS -6 ✓ Geospatial Commands
GEORADIUS_RO -6 Geospatial Commands
GEORADIUSBYMEMBER -5 ✓ Geospatial Commands
GEORADIUSBYMEMBER_RO -5 Geospatial Commands
GEOSEARCH -7 Geospatial Commands
GEOSEARCHSTORE -8 ✓ Geospatial Commands
GET 2 String Commands
GETBIT 3 Bitmap Commands
GETDEL 2 ✓ String Commands
GETEX -2 ✓ String Commands
GETRANGE 4 String Commands
GETSET 3 ✓ String Commands
HDEL -3 ✓ Hash Commands
HELLO -1 Server / Admin Commands
HEXISTS 3 Hash Commands
HEXPIRE -6 ✓ Hash Commands
HEXPIREAT -6 ✓ Hash Commands
HEXPIRETIME -5 Hash Commands
HGET 3 Hash Commands
HGETALL 2 Hash Commands
HINCRBY 4 ✓ Hash Commands
HINCRBYFLOAT 4 ✓ Hash Commands
HKEYS 2 Hash Commands
HLEN 2 Hash Commands
HMGET -3 Hash Commands
HMSET -4 ✓ Hash Commands
HPERSIST -5 ✓ Hash Commands
HPEXPIRE -6 ✓ Hash Commands
HPEXPIREAT -6 ✓ Hash Commands
HPEXPIRETIME -5 Hash Commands
HPTTL -5 Hash Commands
HRANDFIELD -2 Hash Commands
HSCAN -3 Hash Commands
HSET -4 ✓ Hash Commands
HSETNX 4 ✓ Hash Commands
HSTRLEN 3 Hash Commands
HTTL -5 Hash Commands
HVALS 2 Hash Commands
INCR 2 ✓ String Commands
INCRBY 3 ✓ String Commands
INCRBYFLOAT 3 ✓ String Commands
INFO -1 Server / Admin Commands
KEYS 2 Key / Expiry Commands
LASTSAVE 1 Server / Admin Commands
LATENCY -2 Server / Admin Commands
LCS -3 String Commands
LINDEX 3 List Commands
LINSERT 5 ✓ List Commands
LLEN 2 List Commands
LMOVE 5 ✓ List Commands
LMPOP -4 ✓ List Commands
LOLWUT -1 Server / Admin Commands
LPOP -2 ✓ List Commands
LPOS -3 List Commands
LPUSH -3 ✓ List Commands
LPUSHX -3 ✓ List Commands
LRANGE 4 List Commands
LREM 4 ✓ List Commands
LSET 4 ✓ List Commands
LTRIM 4 ✓ List Commands
MEMORY -2 Server / Admin Commands
MGET -2 String Commands
MIGRATE -6 ✓ Cluster Commands
MODULE -2 Server / Admin Commands
MONITOR 1 Server / Admin Commands
MOVE 3 ✓ Key / Expiry Commands
MSET -3 ✓ String Commands
MSETEX -4 ✓ String Commands
MSETNX -3 ✓ String Commands
MULTI 1 Transaction Commands
OBJECT -2 Key / Expiry Commands
PERSIST 2 ✓ Key / Expiry Commands
PEXPIRE -3 ✓ Key / Expiry Commands
PEXPIREAT -3 ✓ Key / Expiry Commands
PEXPIRETIME 2 Key / Expiry Commands
PFADD -2 ✓ HyperLogLog Commands
PFCOUNT -2 HyperLogLog Commands
PFDEBUG 3 ✓ HyperLogLog Commands
PFMERGE -2 ✓ HyperLogLog Commands
PFSELFTEST 1 HyperLogLog Commands
PING -1 Server / Admin Commands
PSETEX 4 ✓ String Commands
PSUBSCRIBE -2 Pub/Sub Commands
PSYNC -3 Cluster Commands
PTTL 2 Key / Expiry Commands
PUBLISH 3 Pub/Sub Commands
PUBSUB -2 Pub/Sub Commands
PUNSUBSCRIBE -1 Pub/Sub Commands
QUIT -1 Server / Admin Commands
RANDOMKEY 1 Key / Expiry Commands
READONLY 1 Cluster Commands
READWRITE 1 Cluster Commands
RENAME 3 ✓ Key / Expiry Commands
RENAMENX 3 ✓ Key / Expiry Commands
REPLCONF -1 Cluster Commands
REPLICAOF 3 Server / Admin Commands
RESET 1 Server / Admin Commands
RESTORE -4 ✓ Key / Expiry Commands
RESTORE-ASKING -4 ✓ —
ROLE 1 Server / Admin Commands
RPOP -2 ✓ List Commands
RPOPLPUSH 3 ✓ List Commands
RPUSH -3 ✓ List Commands
RPUSHX -3 ✓ List Commands
SADD -3 ✓ Set Commands
SAVE 1 Server / Admin Commands
SCAN -2 Key / Expiry Commands
SCARD 2 Set Commands
SCRIPT -2 Scripting & Functions
SDIFF -2 Set Commands
SDIFFSTORE -3 ✓ Set Commands
SELECT 2 Server / Admin Commands
SET -3 ✓ String Commands
SETBIT 4 ✓ Bitmap Commands
SETEX 4 ✓ String Commands
SETNX 3 ✓ String Commands
SETRANGE 4 ✓ String Commands
SHUTDOWN -1 Server / Admin Commands
SINTER -2 Set Commands
SINTERCARD -3 Set Commands
SINTERSTORE -3 ✓ Set Commands
SISMEMBER 3 Set Commands
SLAVEOF 3 Server / Admin Commands
SLOWLOG -2 Server / Admin Commands
SMEMBERS 2 Set Commands
SMISMEMBER -3 Set Commands
SMOVE 4 ✓ Set Commands
SORT -2 ✓ Key / Expiry Commands
SORT_RO -2 Key / Expiry Commands
SPOP -2 ✓ Set Commands
SPUBLISH 3 Pub/Sub Commands
SRANDMEMBER -2 Set Commands
SREM -3 ✓ Set Commands
SSCAN -3 Set Commands
SSUBSCRIBE -2 Pub/Sub Commands
STRLEN 2 String Commands
SUBSCRIBE -2 Pub/Sub Commands
SUBSTR 4 String Commands
SUNION -2 Set Commands
SUNIONSTORE -3 ✓ Set Commands
SUNSUBSCRIBE -1 Pub/Sub Commands
SWAPDB 3 ✓ Server / Admin Commands
SYNC 1 Server / Admin Commands
TIME 1 Server / Admin Commands
TOUCH -2 Key / Expiry Commands
TTL 2 Key / Expiry Commands
TYPE 2 Key / Expiry Commands
UNLINK -2 ✓ Key / Expiry Commands
UNSUBSCRIBE -1 Pub/Sub Commands
UNWATCH 1 Transaction Commands
VADD -5 ✓ VSET Commands
VCARD 2 VSET Commands
VDIM 2 VSET Commands
VEMB -3 VSET Commands
VGETATTR 3 VSET Commands
VINFO 2 VSET Commands
VISMEMBER 3 VSET Commands
VLINKS -3 VSET Commands
VRANDMEMBER -2 VSET Commands
VRANGE -4 VSET Commands
VREM 3 ✓ VSET Commands
VSETATTR 4 ✓ VSET Commands
VSIM -4 VSET Commands
WAIT 3 Key / Expiry Commands
WAITAOF 4 Key / Expiry Commands
WATCH -2 Transaction Commands
XACK -4 ✓ Stream Commands
XACKDEL -6 ✓ Stream Commands
XADD -5 ✓ Stream Commands
XAUTOCLAIM -6 ✓ Stream Commands
XCLAIM -6 ✓ Stream Commands
XDEL -3 ✓ Stream Commands
XDELEX -5 ✓ Stream Commands
XGROUP -2 Stream Commands
XINFO -2 Stream Commands
XLEN 2 Stream Commands
XPENDING -3 Stream Commands
XRANGE -4 Stream Commands
XREAD -4 Stream Commands
XREADGROUP -7 ✓ Stream Commands
XREVRANGE -4 Stream Commands
XSETID -3 ✓ Stream Commands
XTRIM -4 ✓ Stream Commands
ZADD -4 ✓ Sorted Set Commands
ZCARD 2 Sorted Set Commands
ZCOUNT 4 Sorted Set Commands
ZDIFF -3 Sorted Set Commands
ZDIFFSTORE -4 ✓ Sorted Set Commands
ZINCRBY 4 ✓ Sorted Set Commands
ZINTER -3 Sorted Set Commands
ZINTERCARD -3 Sorted Set Commands
ZINTERSTORE -4 ✓ Sorted Set Commands
ZLEXCOUNT 4 Sorted Set Commands
ZMPOP -4 ✓ Sorted Set Commands
ZMSCORE -3 Sorted Set Commands
ZPOPMAX -2 ✓ Sorted Set Commands
ZPOPMIN -2 ✓ Sorted Set Commands
ZRANDMEMBER -2 Sorted Set Commands
ZRANGE -4 Sorted Set Commands
ZRANGEBYLEX -4 Sorted Set Commands
ZRANGEBYSCORE -4 Sorted Set Commands
ZRANGESTORE -5 ✓ Sorted Set Commands
ZRANK -3 Sorted Set Commands
ZREM -3 ✓ Sorted Set Commands
ZREMRANGEBYLEX 4 ✓ Sorted Set Commands
ZREMRANGEBYRANK 4 ✓ Sorted Set Commands
ZREMRANGEBYSCORE 4 ✓ Sorted Set Commands
ZREVRANGE -4 Sorted Set Commands
ZREVRANGEBYLEX -4 Sorted Set Commands
ZREVRANGEBYSCORE -4 Sorted Set Commands
ZREVRANK -3 Sorted Set Commands
ZSCAN -3 Sorted Set Commands
ZSCORE 3 Sorted Set Commands
ZUNION -3 Sorted Set Commands
ZUNIONSTORE -4 ✓ Sorted Set Commands

Generated at build time from tools/gen_command_table.py · doc/command_matrix.md — edit the source, not this page.