Evaluate a Lua script server side.
script = """ local value = redis.call("GET", KEYS[1]) return value """ redis.set("mykey", "Hello") assert redis.eval(script, keys=["mykey"]) == "Hello"
The lua script to run.
All of the keys accessed in the script
All of the arguments you passed to the script
The result of the script.
Was this page helpful?