I"d like to ask why I run redis-cli through shell-- run lua script through eval, and pass parameters to nil. I did the same thing about commas separating spaces on the Internet, but I just couldn"t get the parameters. I would like to ask all the bosses
the script is also very simple
lua script:
local key = KEYS [1]
local value = ARGV [1]
print (key)
print (value)
for k, v in pairs (KEYS) do
print(k, v)
end
for k, v in pairs (ARGV) do
print(k, v)
end