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

fix(set): support optional "GET" parameter #1264

Merged
merged 1 commit into from
Mar 28, 2023
Merged

fix(set): support optional "GET" parameter #1264

merged 1 commit into from
Mar 28, 2023

Conversation

the5thbeatle
Copy link
Contributor

Set allows for an optional parameter "GET", which causes Redis to return the previous value of the key if it existed. This adds a conditional return value to the set command, which is "OK" if "GET" was not provided in the options and is key's previous value otherwise.

@stipsan stipsan changed the title set: support optional "GET" parameter fix(set): support optional "GET" parameter Mar 28, 2023
@stipsan stipsan merged commit f8b6671 into stipsan:main Mar 28, 2023
@github-actions
Copy link
Contributor

🎉 This PR is included in version 8.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants