From 6aa1a3b030d1bb9666b443cf091163b7b5c660b4 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 28 Jan 2013 13:00:03 +0100 Subject: [PATCH] Send 'expired' events when a key expires by lookup. --- src/db.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db.c b/src/db.c index 220503c35..8429aa4b5 100644 --- a/src/db.c +++ b/src/db.c @@ -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); }