PERSIST key */
| 588 | |
| 589 | /* PERSIST key */ |
| 590 | void 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] */ |
| 606 | void touchCommand(client *c) { |
nothing calls this directly
no test coverage detected