diff --git a/src/db.c b/src/db.c index f80ef2aca..5e75de472 100644 --- a/src/db.c +++ b/src/db.c @@ -280,6 +280,7 @@ void delCommand(redisClient *c) { int deleted = 0, j; for (j = 1; j < c->argc; j++) { + expireIfNeeded(c->db,c->argv[j]); if (dbDelete(c->db,c->argv[j])) { signalModifiedKey(c->db,c->argv[j]); notifyKeyspaceEvent(REDIS_NOTIFY_GENERIC,