Skip to content

feat: add HGetDel, HGetEX, HGetEXWithArgs, HSetEX, and HSetEXWithArgs… #831

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

dalaoqi
Copy link
Contributor

@dalaoqi dalaoqi commented Apr 16, 2025

Closes #828

@dalaoqi dalaoqi marked this pull request as ready for review April 16, 2025 18:23
@dalaoqi
Copy link
Contributor Author

dalaoqi commented Apr 16, 2025

@rueian , please take a look. thanks


func (c *Compat) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd {
var cmd rueidis.Completed
if options.ExpirationType == HGetEXExpirationEX {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if the options == nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think options == nil is more similar to the situation with HGetEX?

@dalaoqi dalaoqi requested a review from rueian April 17, 2025 17:30
Copy link
Collaborator

@rueian rueian left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @dalaoqi!

@rueian rueian merged commit 9a2b170 into redis:main Apr 17, 2025
34 checks passed
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.

Add new HGETDEL, HGETEX, HSETEX to rueidiscompat
2 participants