Skip to content

MGET sort of thing for Redis Hashes #2490

@arun-j02

Description

@arun-j02

Discussed in #2489

Originally posted by arun-j98 August 19, 2023
Hey, just wanted to ask like we have mget to get multiples keys-value pairs at once. Do we have something similar for getting redis hashes? UseCase: we have stored a multi level map {k1 : {f1: v1, f2, v2}, k2 : {f1: v1, f2: v2}} as redis hash. I want to pass k1, k2 as the list of keys and want to get the full data for k1, k2 ==> {k1 : {f1: v1, f2, v2}, k2 : {f1: v1, f2: v2}}. I know redis-cli doesn't support mget sort of thing for hashes, but like does lettuce on its side might do some pipelining or something.
Currently, we are doing this...we have a list of keys [k1, k2 ... kn] and for each key we are making a redis call. if the list is large then latencies are increasing which is obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions