Comment From: sundb
Perhaps the following lua script could fit your need.
local keys = redis.call("keys", "binance_btc_*")
local ret = {}
for i = 1, #keys do
local h = redis.call("hgetall", keys[i])
table.insert(ret, h)
end
return ret
Comment From: zuiderkwast
This issue seems to be about async programming JavaScript. Redis server is fine with users calling first KEYS and then HGETALL.