ACL CAT
ACL CAT [category]
- Group
- ACL
- Complexity
- O(N) where N is the number of commands
- Arity
- -2 (at least 2 words, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
Without an argument, ACL CAT lists the command categories you can use in
ACL SETUSER rules such as +@read or
-@dangerous. With a category, it lists the commands in it, in lower case,
with subcommands written as command|subcommand. Category names are not
case sensitive.
HotKV has these 25 categories: keyspace, read, write, set,
sortedset, list, hash, string, bitmap, hyperloglog, geo,
stream, pubsub, admin, fast, slow, blocking, dangerous,
connection, transaction, scripting, bloom, cms, topk and
timeseries.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| No argument | Array of bulk strings: the categories | Array |
| A category | Array of bulk strings: its commands | Array |
| Unknown category | Error ERR Unknown category '<category>' |
Same error |
Examples
Section titled “Examples”127.0.0.1:6379> ACL CAT 1) "keyspace" 2) "read" 3) "write" 4) "set" 5) "sortedset" 6) "list" 7) "hash" 8) "string" 9) "bitmap"10) "hyperloglog"11) "geo"12) "stream"13) "pubsub"14) "admin"15) "fast"16) "slow"17) "blocking"18) "dangerous"19) "connection"20) "transaction"21) "scripting"22) "bloom"23) "cms"24) "topk"25) "timeseries"127.0.0.1:6379> ACL CAT transaction1) "discard"2) "exec"3) "multi"4) "unwatch"5) "watch"127.0.0.1:6379> ACL CAT nosuch(error) ERR Unknown category 'nosuch'Compatibility
Section titled “Compatibility”The 21 categories of Redis 7 and Valkey 8, plus bloom, cms, topk and
timeseries for HotKV’s own data types.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.