summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorguybe7 <guy.benoish@redislabs.com>2022-04-10 10:41:31 +0200
committerGitHub <noreply@github.com>2022-04-10 11:41:31 +0300
commit719db14ec78d9da1c8abe3577cb77019c4c61eb3 (patch)
tree32ded2d2f749c8a5c15acf3315cd4230a03f7b47 /src/server.h
parent6cb5cbb28fea3f77f07e78effbbd0cf378c5b6bf (diff)
downloadredis-719db14ec78d9da1c8abe3577cb77019c4c61eb3.tar.gz
COMMAND DOCS shows module name, where applicable (#10544)
Add field to COMMAND DOCS response to denote the name of the module that added that command. COMMAND LIST can filter by module, but if you get the full commands list, you may still wanna know which command belongs to which module. The alternative would be to do MODULE LIST, and then multiple calls to COMMAND LIST
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index edfea2226..02c00de5c 100644
--- a/src/server.h
+++ b/src/server.h
@@ -2349,6 +2349,7 @@ int moduleGetCommandChannelsViaAPI(struct redisCommand *cmd, robj **argv, int ar
moduleType *moduleTypeLookupModuleByID(uint64_t id);
void moduleTypeNameByID(char *name, uint64_t moduleid);
const char *moduleTypeModuleName(moduleType *mt);
+const char *moduleNameFromCommand(struct redisCommand *cmd);
void moduleFreeContext(struct RedisModuleCtx *ctx);
void unblockClientFromModule(client *c);
void moduleHandleBlockedClients(void);