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

Function memoryGetKeys

app/redis-6.2.6/src/db.c:1855–1866  ·  view source on GitHub ↗

Helper function to extract keys from memory command. * MEMORY USAGE */

Source from the content-addressed store, hash-verified

1853/* Helper function to extract keys from memory command.
1854 * MEMORY USAGE <key> */
1855int memoryGetKeys(struct redisCommand *cmd, robj **argv, int argc, getKeysResult *result) {
1856 UNUSED(cmd);
1857
1858 getKeysPrepareResult(result, 1);
1859 if (argc >= 3 && !strcasecmp(argv[1]->ptr,"usage")) {
1860 result->keys[0] = 2;
1861 result->numkeys = 1;
1862 return result->numkeys;
1863 }
1864 result->numkeys = 0;
1865 return 0;
1866}
1867
1868/* XREAD [BLOCK <milliseconds>] [COUNT <count>] [GROUP <groupname> <ttl>]
1869 * STREAMS key_1 key_2 ... key_N ID_1 ID_2 ... ID_N */

Callers

nothing calls this directly

Calls 2

getKeysPrepareResultFunction · 0.85
strcasecmpFunction · 0.85

Tested by

no test coverage detected