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

how can i get the value when the key expired in node.js? #3186

Closed
wwj559 opened this issue Apr 22, 2016 · 1 comment
Closed

how can i get the value when the key expired in node.js? #3186

wwj559 opened this issue Apr 22, 2016 · 1 comment

Comments

@wwj559
Copy link

wwj559 commented Apr 22, 2016

config set notify-keyspace-events Ex.

redis.subscribe('keyevent@0:expired', function(key, value) {
//something want to do with the value
});

@itamarhaber
Copy link
Member

You can't - keyspace notifications do not include the value, only the key's name.

Please note that this issue tracker is for reporting real issues. For general questions and assistance please use the community's channels - http://redis.io/community.

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