Browse Source

[Fix] Redis key expansion: EVAL: deal with strings

tags/1.7.0
Andrew Lewis 6 years ago
parent
commit
6179837c52
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_redis.lua

+ 1
- 1
lualib/lua_redis.lua View File

@@ -225,7 +225,7 @@ local process_cmd = {
eval = function(args)
local idx_l = {}
local numkeys = args[2]
if numkeys >= 1 then
if numkeys and tonumber(numkeys) >= 1 then
for i = 3, numkeys + 2 do
table.insert(idx_l, i)
end

Loading…
Cancel
Save