MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lookupCommandByCString

Function lookupCommandByCString

app/redis-6.2.6/src/server.c:3537–3544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3535}
3536
3537struct redisCommand *lookupCommandByCString(const char *s) {
3538 struct redisCommand *cmd;
3539 sds name = sdsnew(s);
3540
3541 cmd = dictFetchValue(server.commands, name);
3542 sdsfree(name);
3543 return cmd;
3544}
3545
3546/* Lookup the command in the current table, if not found also check in
3547 * the original table containing the original command names unaffected by

Callers 3

initServerConfigFunction · 0.85
RM_ReplicateFunction · 0.85
RM_EmitAOFFunction · 0.85

Calls 3

sdsnewFunction · 0.85
dictFetchValueFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected