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

redis.setNX with expiration does not work #880

Closed
extrawurst opened this issue Oct 23, 2014 · 0 comments · Fixed by #890
Closed

redis.setNX with expiration does not work #880

extrawurst opened this issue Oct 23, 2014 · 0 comments · Fixed by #890

Comments

@extrawurst
Copy link
Contributor

setNX with an expiration time does not work.
this method is the basis of the RedisLock idiom which in turn is broken cause of it

adding this to the redis test leads to the fail:

assert(db.setNX("setnxtest", "foo", 30.seconds));
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

Successfully merging a pull request may close this issue.

1 participant