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

Function mgetCommand

app/redis-6.2.6/src/t_string.c:525–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void mgetCommand(client *c) {
526 int j;
527
528 addReplyArrayLen(c,c->argc-1);
529 for (j = 1; j < c->argc; j++) {
530 robj *o = lookupKeyRead(c->db,c->argv[j]);
531 if (o == NULL) {
532 addReplyNull(c);
533 } else {
534 if (o->type != OBJ_STRING) {
535 addReplyNull(c);
536 } else {
537 addReplyBulk(c,o);
538 }
539 }
540 }
541}
542
543void msetGenericCommand(client *c, int nx) {
544 int j;

Callers

nothing calls this directly

Calls 4

addReplyArrayLenFunction · 0.85
lookupKeyReadFunction · 0.85
addReplyNullFunction · 0.85
addReplyBulkFunction · 0.85

Tested by

no test coverage detected