Skip to content

HMGET.asStringList returns less answers than requested #30

@kalondar

Description

@kalondar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions