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

Expire timeout is not cleared when changing value #184

Open
fabiansperber opened this issue Mar 19, 2021 · 0 comments
Open

Expire timeout is not cleared when changing value #184

fabiansperber opened this issue Mar 19, 2021 · 0 comments

Comments

@fabiansperber
Copy link

fabiansperber commented Mar 19, 2021

"The timeout will only be cleared by commands that delete or overwrite the contents of the key, including DEL, SET, GETSET and all the *STORE commands." https://redis.io/commands/expire

Currently calling .set() does not clear the timeout - and others won't too.

Also calling .set() before the timeout expires, makes it impossible to change the timeout with a second .expire() call as the timeout information gets overwritten by .set()

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

1 participant