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

Function cmdHasMovableKeys

src/server.cpp:4776–4779  ·  view source on GitHub ↗

Returns 1 for commands that may have key names in their arguments, but have * no pre-determined key positions. */

Source from the content-addressed store, hash-verified

4774/* Returns 1 for commands that may have key names in their arguments, but have
4775 * no pre-determined key positions. */
4776static int cmdHasMovableKeys(struct redisCommand *cmd) {
4777 return (cmd->getkeys_proc && !(cmd->flags & CMD_MODULE)) ||
4778 cmd->flags & CMD_MODULE_GETKEYS;
4779}
4780
4781/* If this function gets called we already read a whole
4782 * command, arguments are in the client argv/argc fields.

Callers 2

processCommandFunction · 0.85
addReplyCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected