Send 'expired' events when a key expires by lookup.

This commit is contained in:
antirez 2013-01-28 13:00:03 +01:00
parent fdfcd570ed
commit 6aa1a3b030

View File

@ -543,6 +543,8 @@ int expireIfNeeded(redisDb *db, robj *key) {
/* Delete the key */
server.stat_expiredkeys++;
propagateExpire(db,key);
notifyKeyspaceEvent(REDIS_NOTIFY_EXPIRED,
"expired",key,db->id);
return dbDelete(db,key);
}