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

HMGET.asStringList returns less answers than requested #30

Open
kalondar opened this issue Jul 26, 2013 · 0 comments
Open

HMGET.asStringList returns less answers than requested #30

kalondar opened this issue Jul 26, 2013 · 0 comments

Comments

@kalondar
Copy link

Redis "struct" HASH content:
"field1" = "1"
// "field2" is missing

Java code:

List<String> rec = client.hmget("struct", "field1", "field2").asStringList(Charsets.UTF_8);

Returns only one String... but you don't know which one :(
It makes HMGET function useless, because you can't match requested field with returned values.

Only one workaround is to analyse MultiBulkReply.data[] and manually match fields by request index.

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

No branches or pull requests

1 participant