-
-
Save fatihky/e202cd478e06d65f17d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- iterate over Redis hash in Lua. | |
local results = redis.call("HGETALL", KEYS[1]); | |
if results ~= 0 then | |
for key, value in ipairs(results) do | |
-- do something here | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment