I wonder if there is a feature in redis that allow me to get all expired keys (I mean some kind of event, that gives me an opportunity to take back all expire records). The purpose of it is in saving old values into another database. I’ve heard that it’s possible using publishing mechanism, but google can’t help we with this idea.
Share
Current development version of redis contains a new feature: keyspace notifications. Documentation: http://redis.io/topics/notifications
Hopefully, it will make it to stable soon.
BTW, it won’t be very useful in helping you save values of expired keys. When expiration event is fired, the value is gone already.