Redis is great but it was missing a feature; I always wanted this post covers and provides you with a Redis fork that give you a new feature of PUBLISH event on key expiry.
Yes I believe minimal changes means lesser bugs. And yes! It's freaking cool they way Redis guys have coded this thing :)
Antirez is considering adding a special SUBSCRIBE command for internal Redis events. Right now it's planned to mostly handle warnings and replication stuff, but keys expiring would be a good usecase for it too.
I've seen that discussion of new subscribe things; I believe it will be a good feature to introduce. I love this approach because its really simple and there is no new instruction in system (like backward compatible x86 machines) :)
That's awesome. For a project I'm going to work on using node.js and Redis, this is exactly the functionality I need for a component. Would be quite useful for scheduling one-time events through Redis.
I wonder if using a zset with the expiration timestamps as score and user id wouldn't work for this scenario?