I use nekipelov / redisclient to access Redis, and I need to get multiple hash data with a single Redis call to improve performance.
More specifically, I am trying to extract multiple hashes as shown below:
redis-cli --ldb --eval /tmp/script.lua hash_key1 hash_key2
where script.lua:
local r = {}
for _, v in pairs(KEYS) do
r[
end
return r
But it's hard for me to express this using the EVAL command via nekipelov / redisclient.
I tried something below:
redisclient.command("EVAL", {"/tmp/script.lua", hash_key1, hash_key2}
but obviously wrong.
source
share