antirez/redis — pull request #1677 by mattsta (2014-04-10 21:12:21+00:00)
Title: Check key expiration before deleting

Deleting an expired key should return 0, not success.

Fixes #1648

With active expiration, most keys on a lightly used server *will* expire soon after their expiration time. Only on loaded servers or servers with manually disabled active expiration (via debug) will the problem of successfully deleting keys that shouldn't exist show itself.