-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
MHGETALL command to get multiple fields and values from multiple hashes #109
Comments
This will not be implemented because it requires all keys to be available on a single server, and is therefore not well suited in a distributed environment. We avoid to add commands that have this characteristic. You can achieve the same result using a MULTI/EXEC block with HGETALL commands. While this does result in some extra bytes on the wire, you'll find that it is almost as fast as a native command when the group of commands is sent to Redis in a pipelined fashion. Cheers, |
Also note that a Redis Lua script can implement this without issues. Scripting is available in Redis unstable and will be available into 2.6 stable in the future. |
Thanks for the info! |
…itch Fix default Redis compilation w/o Memkind
Hello,
I think it can save network traffic between client and server and make queries convenient and faster. My use case:
HMSET user:1 name User1
HMSET user:2 name User2
HMSET user:3 name User3
And now get all three users with custom delmiter between hashes (inevitably?):
MHGETALL #delimiter# user:1 user:2 user:3
Best regards
Anton
The text was updated successfully, but these errors were encountered: