Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send value together with the key on expire notification #1876

Closed
jozic opened this issue Jul 16, 2014 · 1 comment
Closed

Send value together with the key on expire notification #1876

jozic opened this issue Jul 16, 2014 · 1 comment

Comments

@jozic
Copy link

jozic commented Jul 16, 2014

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#

@mattsta
Copy link
Contributor

mattsta commented Jul 16, 2014

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.

@mattsta mattsta closed this as completed Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants