Complete the code to access the first key in a Redis Lua script.
local key1 = KEYS[[1]]In Redis Lua scripts, keys are accessed starting at index 1, so KEYS[1] gets the first key.
Complete the code to access the second argument passed to the Redis Lua script.
local arg2 = ARGV[[1]]ARGV holds the arguments passed to the script starting at index 1, so ARGV[2] is the second argument.
Fix the error in accessing the first key in the script.
local firstKey = KEYS[[1]]Lua tables start at 1, so KEYS[1] correctly accesses the first key.
Fill both blanks to get the third key and the first argument in the script.
local thirdKey = KEYS[[1]] local firstArg = ARGV[[2]]
KEYS[3] accesses the third key, and ARGV[1] accesses the first argument.
Fill all three blanks to get the second key, the third argument, and the first key in the script.
local secondKey = KEYS[[1]] local thirdArg = ARGV[[2]] local firstKey = KEYS[[3]]
KEYS[2] is the second key, ARGV[3] is the third argument, and KEYS[1] is the first key.