You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now when redis sends an expire notification only key is included in the notification. Sometimes it's useful to do something based on value once an expire notification is received, but at this point key (and value) is deleted and there is no way to get this expired value.
for example please see this questions http://stackoverflow.com/questions/18328058/redis-2-8-notifications-get-value-instead-of-key-on-expire#
The text was updated successfully, but these errors were encountered:
It sounds like a good idea at first, but Redis values are data types. How do we return an entire sorted set with the expiration notice? What about a sorted set with a million elements? A 512 MB string? An entire hash with a thousand field/value pairs?
It's not something Redis can handle natively because sending one automatic notice could collapse the server by doubling memory usage if the server is using large values.
So... nice idea, but not really feasible directly with the notification system.
As of now when redis sends an expire notification only key is included in the notification. Sometimes it's useful to do something based on value once an expire notification is received, but at this point key (and value) is deleted and there is no way to get this expired value.
for example please see this questions http://stackoverflow.com/questions/18328058/redis-2-8-notifications-get-value-instead-of-key-on-expire#
The text was updated successfully, but these errors were encountered: