Skip to content

DOC-4449 hash command examples #3229

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

Conversation

andy-stark-redis
Copy link
Contributor

@andy-stark-redis andy-stark-redis commented Jan 14, 2025

DOC-4449 and DOC-4454

I've also made the test for the hset example deterministic by not relying on the order of the hash keys. I originally used the Collect and Keys standard lib functions to do this. However, they have only been added recently (Go 1.23.0), so they don't pass the CI. Let me know if there's a better way to handle this without Collect and Keys.

@andy-stark-redis andy-stark-redis marked this pull request as ready for review January 15, 2025 11:45
@vladvildanov vladvildanov merged commit 0e3ea5f into redis:master Jan 17, 2025
22 checks passed
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
* DOC-4450 added hgetall and hvals doc examples

* DOC-4449 added hgetall and hvals doc examples

* DOC-4449 rewrote to avoid Collect and Keys functions (not available in test version of Go)

* DOC-4449 replaced slices.Sort function with older alternative

* DOC-4449 removed another instance of slices.Sort

* DOC-4449 fixed bugs in tests

* DOC-4449 try sort.Strings() for sorting key lists

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
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