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

add ExpectSetArgs method #34

Closed
wants to merge 0 commits into from
Closed

add ExpectSetArgs method #34

wants to merge 0 commits into from

Conversation

agammell
Copy link

@agammell agammell commented Apr 25, 2022

GETSET is considered a deprecated command in Redis 6.2.0 with the recommended replacement command being SET with the GET argument provided.

This preferred method is implemented in go-redis via the SetArgs function, which takes a SetArgs instance with the Get field set to true. But redismock does not currently support mocking the SetArgs function.

This PR implements an ExpectSetArgs functionality, allowing code written using it to be mocked.

@agammell agammell changed the title add ExpectSetArgs methods add ExpectSetArgs method Apr 25, 2022
@fterrag
Copy link

fterrag commented May 2, 2022

Hi there! What can we do to get this PR reviewed and merged? Thank you for opening this @agammell!

@agammell
Copy link
Author

Is this repo still active?

@agammell agammell closed this Jan 18, 2023
@agammell
Copy link
Author

Looks like this is now present in master. Closing the PR.

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