Arguments
The read-only lua script to run.
All of the keys accessed in the script
All of the arguments you passed to the script
Response
The result of the script.
script = """
local value = redis.call("GET", KEYS[1])
return value
"""
redis.set("mykey", "Hello")
assert redis.eval_ro(script, keys=["mykey"]) == "Hello"