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

Function touchCommand

app/redis-6.2.6/src/expire.c:606–611  ·  view source on GitHub ↗

TOUCH key1 [key2 key3 ... keyN] */

Source from the content-addressed store, hash-verified

604
605/* TOUCH key1 [key2 key3 ... keyN] */
606void touchCommand(client *c) {
607 int touched = 0;
608 for (int j = 1; j < c->argc; j++)
609 if (lookupKeyRead(c->db,c->argv[j]) != NULL) touched++;
610 addReplyLongLong(c,touched);
611}
612

Callers

nothing calls this directly

Calls 2

lookupKeyReadFunction · 0.85
addReplyLongLongFunction · 0.85

Tested by

no test coverage detected