summaryrefslogtreecommitdiff
path: root/src/expire.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-07-03 19:16:20 +0200
committerantirez <antirez@gmail.com>2019-07-03 19:16:20 +0200
commit46edb55de94cd5d8ebf2dd910092ddaf53181fb8 (patch)
tree1701b8da1abe0ed34fd83dd89d21d58e34d3c7f3 /src/expire.c
parent506764b3f87789bfe219da0b07b79f01917bff9f (diff)
downloadredis-46edb55de94cd5d8ebf2dd910092ddaf53181fb8.tar.gz
Client side caching: implement trackingInvalidateKey().
Diffstat (limited to 'src/expire.c')
-rw-r--r--src/expire.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expire.c b/src/expire.c
index 0b92ee3fe..b23117a3c 100644
--- a/src/expire.c
+++ b/src/expire.c
@@ -64,6 +64,7 @@ int activeExpireCycleTryExpire(redisDb *db, dictEntry *de, long long now) {
dbSyncDelete(db,keyobj);
notifyKeyspaceEvent(NOTIFY_EXPIRED,
"expired",keyobj,db->id);
+ if (server.tracking_clients) trackingInvalidateKey(keyobj);
decrRefCount(keyobj);
server.stat_expiredkeys++;
return 1;