PERSIST should notify a keyspace event

This commit is contained in:
Guy Benoish authored and antirez committed 2020-04-07 16:52:04 +02:00
1 parent 2535a172c1
commit 6e5efbf918
1 file changed
+1
+1
View File
@@ -590,6 +590,7 @@ void pttlCommand(client *c) {
void persistCommand(client *c) {
if (lookupKeyWrite(c->db,c->argv[1])) {
if (removeExpire(c->db,c->argv[1])) {
notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id);
addReply(c,shared.cone);
server.dirty++;
} else {