diff options
author | antirez <antirez@gmail.com> | 2013-01-28 13:00:03 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-01-28 13:15:19 +0100 |
commit | 4dfb5752e0714228ff6fb0a2728ee03638ac232f (patch) | |
tree | 6e498bb0b732c8cfbc82dde22eaa49d0391a72c7 /src/db.c | |
parent | 562b2bd6a7d6e8ee893d68059360b593ed43352f (diff) | |
download | redis-4dfb5752e0714228ff6fb0a2728ee03638ac232f.tar.gz |
Send 'expired' events when a key expires by lookup.
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |