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

Function existsCommand

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

EXISTS key1 key2 ... key_N. * Return value is the number of keys existing. */

Source from the content-addressed store, hash-verified

708/* EXISTS key1 key2 ... key_N.
709 * Return value is the number of keys existing. */
710void existsCommand(client *c) {
711 long long count = 0;
712 int j;
713
714 for (j = 1; j < c->argc; j++) {
715 if (lookupKeyReadWithFlags(c->db,c->argv[j],LOOKUP_NOTOUCH)) count++;
716 }
717 addReplyLongLong(c,count);
718}
719
720void selectCommand(client *c) {
721 int id;

Callers

nothing calls this directly

Calls 2

lookupKeyReadWithFlagsFunction · 0.85
addReplyLongLongFunction · 0.85

Tested by

no test coverage detected