EVALSHA_RO

EVALSHA_RO sha1 numkeys [key [key ...]] [arg [arg ...]]
Available since:
Redis Open Source 7.0.0
Time complexity:
Depends on the script that is executed.
ACL categories:
@slow, @scripting,
Compatibility:
Redis Software and Redis Cloud compatibility

This is a read-only variant of the EVALSHA command that cannot execute commands that modify data.

For more information about when to use this command vs EVALSHA, please refer to Read-only scripts.

For more information about EVALSHA scripts please refer to Introduction to Eval Scripts.

Required arguments

sha1

The SHA1 digest of a read-only script previously cached with SCRIPT LOAD or EVAL_RO.

numkeys

The number of key names that follow. Arguments after the keys are passed as regular arguments.

Optional arguments

key [key ...]

The key names the script accesses, provided to it via the Lua KEYS global variable. There must be exactly numkeys of them.

arg [arg ...]

Additional arguments provided to the script via the Lua ARGV variable.

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

The return value depends on the script that was executed.
RATE THIS PAGE
Back to top ↑