MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lookupCommand

Function lookupCommand

src/server.cpp:4322–4324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4320/* ====================== Commands lookup and execution ===================== */
4321
4322struct redisCommand *lookupCommand(sds name) {
4323 return (struct redisCommand*)dictFetchValue(g_pserver->commands, name);
4324}
4325
4326struct redisCommand *lookupCommandByCString(const char *s) {
4327 struct redisCommand *cmd;

Callers 12

prefetchKeysAsyncMethod · 0.85
replicationFeedSlaveFunction · 0.85
processCommandFunction · 0.85
commandCommandFunction · 0.85
RM_CreateCommandFunction · 0.85
RM_CallFunction · 0.85
RM_GetCommandKeysFunction · 0.85
FAsyncCommandFunction · 0.85
loadAppendOnlyFileFunction · 0.85
luaRedisGenericCommandFunction · 0.85

Calls 1

dictFetchValueFunction · 0.85

Tested by

no test coverage detected