Commit d3cf778d authored by antirez's avatar antirez
Browse files

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

parent 9db8fbcf
...@@ -532,6 +532,8 @@ int expireIfNeeded(redisDb *db, robj *key) { ...@@ -532,6 +532,8 @@ int expireIfNeeded(redisDb *db, robj *key) {
/* Delete the key */ /* Delete the key */
server.stat_expiredkeys++; server.stat_expiredkeys++;
propagateExpire(db,key); propagateExpire(db,key);
notifyKeyspaceEvent(REDIS_NOTIFY_EXPIRED,
"expired",key,db->id);
return dbDelete(db,key); return dbDelete(db,key);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment