PERSIST should notify a keyspace event

This commit is contained in:
Guy Benoish 2020-03-29 17:50:42 +03:00 committed by antirez
parent 2535a172c1
commit 6e5efbf918

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 {