COMMANDIntrospect the command table (COUNT, LIST, INFO, DOCS subcommands).
| Syntax | COMMAND [COUNT | LIST | INFO command [command ...] | DOCS [command [command ...]]] |
| Group | server |
| Arity | -1 |
| Since | 1.0.0 |
| Flags | readonly |
| Complexity | bare / LIST / DOCS: O(V) verbs. COUNT: O(1). INFO / DOCS with k names: O(k*V) — the lookup is a linear scan |
| Redis compatibility | differs: COUNT / LIST / INFO / DOCS only — GETKEYS and GETKEYSANDFLAGS are absent, and the info rows hard-code first/last/step and leave ACL categories, tips and key-specs empty |