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

Implement GET option of SET command #2003

Merged
merged 7 commits into from
Feb 25, 2022

Conversation

martinekvili
Copy link
Contributor

Redis 6.2.0 has deprecated the GETSET command and in turn added the GET option to the SET command.

Note: I am not 100% happy with the StringSetAndGet method name. However, I am quite torn, as it would be nice to call it StringGetSet to better show the intent and the deprecation of the old method. On the other hand, I quite like how this driver follows the names of the underlying Redis commands quite closely. The current name tries to follow that convention.

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

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

I see some quick doc fixes but this is looking excellent, thank you! I need to poke a bit more with fresh eyes but I think we're good - 👍 from me on current naming.

src/StackExchange.Redis/Interfaces/IDatabase.cs Outdated Show resolved Hide resolved
src/StackExchange.Redis/Interfaces/IDatabaseAsync.cs Outdated Show resolved Hide resolved
@NickCraver NickCraver self-requested a review February 22, 2022 23:19
Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

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

I've touched this so should get extra eyes /cc @mgravell

@NickCraver NickCraver merged commit 511ba10 into StackExchange:main Feb 25, 2022
@NickCraver
Copy link
Collaborator

@martinekvili thanks for this!!

@NickCraver NickCraver mentioned this pull request Mar 2, 2022
@martinekvili martinekvili deleted the feature-setandget branch March 12, 2022 10:38
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.

2 participants