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 (*StatusCmd).Bytes() method #3030

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Conversation

haines
Copy link
Contributor

@haines haines commented Jun 17, 2024

When calling SetArgs with Get: true, it's useful to be able to read the result as bytes rather than a string (in the same way you would with Get). However, SetArgs returns *StatusCmd (which doesn't implement the Bytes() method) rather than *StringCmd (which does).

This PR adds a Bytes() method to *StatusCmd to support this use case.

Signed-off-by: Andrew Haines <andrew@haines.org.nz>
@monkey92t monkey92t merged commit 2d7382e into redis:master Jun 21, 2024
10 checks passed
@haines haines deleted the status-cmd-bytes branch June 21, 2024 05:24
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