EVAL_RO
Executes a Lua script through the read-only invocation path.
Lua & functions · Example verified
Syntax covered here
EVAL_RO script numkeys keyThe example reads one declared key with GET through a read-only Lua invocation.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET sample value
"OK"
# connection: default
> EVAL_RO "return redis.call('GET', KEYS[1])" 1 sample
"value"