How can we use lua scripting to implement multi-get.
Let's say if I've set name_last
to Beckham and name_first
to David. What should the lua script be in order to get both name_last
and name_first
in one go?
I can implement something like:
eval "return redis.call('get',KEYS[1])" 1 foo
to get the value of single key. Just wondering on how to enhance that scripting part to get values related to all keys (or multiple keys) by just making one call to redis server.