Redis-cli-- the problem that eval executes lua script to transfer parameters

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

clipboard.png

Apr.14,2022

-- eval. / incrHash.lua 12,1597312908750 3000
pass parameters with spaces on both sides
hoping to be useful

  • Redis lua scripts use

    the lua script is simple: local current = redis.call( GET , KEYS[2]) if current == ARGV[2] then redis.call( SET , KEYS[1], ARGV[1]) return true end return false here is the java code: public static void main(String[] args) { ...

    Mar.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38796-2c0fb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38796-2c0fb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?