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

SET options EX, PX, EXAT, PXAT take positive integer argument #2617

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

LiorKogan
Copy link
Member

@LiorKogan LiorKogan commented Dec 5, 2023

Clarify that argument is a positive integer, unlike EXPIRE which accepts zero and negative numbers too.

Copy link

netlify bot commented Dec 5, 2023

👷 Deploy request for redis-doc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a355a08

Copy link
Member

@oranagra oranagra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

context: unlike EXPIRE, which can take negative numbers and implicitly delete the key.
for the SET command, negative TTLs are disallowed.
see this PR for some context: redis/redis#8287

@LiorKogan
Copy link
Member Author

(not just negative values, but also 0)

@zuiderkwast zuiderkwast changed the title Update set.md SET options EX, PX, EXAT, PXAT take positive integer argument Dec 27, 2023
@zuiderkwast zuiderkwast merged commit d3fdeb6 into redis:master Dec 27, 2023
1 check failed
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 this pull request may close these issues.

3 participants