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

Function persistCommand

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

PERSIST key */

Source from the content-addressed store, hash-verified

588
589/* PERSIST key */
590void persistCommand(client *c) {
591 if (lookupKeyWrite(c->db,c->argv[1])) {
592 if (removeExpire(c->db,c->argv[1])) {
593 signalModifiedKey(c,c->db,c->argv[1]);
594 notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id);
595 addReply(c,shared.cone);
596 server.dirty++;
597 } else {
598 addReply(c,shared.czero);
599 }
600 } else {
601 addReply(c,shared.czero);
602 }
603}
604
605/* TOUCH key1 [key2 key3 ... keyN] */
606void touchCommand(client *c) {

Callers

nothing calls this directly

Calls 5

lookupKeyWriteFunction · 0.85
removeExpireFunction · 0.85
signalModifiedKeyFunction · 0.85
notifyKeyspaceEventFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected