Redis does allow multiple gets in the one hit with MGET. If you search for all keys the response is an ordered list of matching values, with null in place where there is no match.
Steve Hindmarch From: Nick Lange <[email protected]> Sent: 07 March 2022 04:46 To: [email protected] Subject: Records - Best Approach to Enrich Record From Cache HI all - I have a record set of objects that each need enrichment of about 10/20 fields of data from a Redis Cache. In a perfect world, I'd hit the cache once and return a json blob for further extraction - ideally in a single hop. I don't see an easy way to do this with the record language, but perhaps I've missed something. Lacking any better sophistication, I'm currently doing this brute-force with 10-20 hits to the cache for each field. I'm hoping that the mailing list has better suggestions. Thank you Nick
