Helper function to extract keys from memory command. * MEMORY USAGE */
| 1853 | /* Helper function to extract keys from memory command. |
| 1854 | * MEMORY USAGE <key> */ |
| 1855 | int 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 */ |
nothing calls this directly
no test coverage detected