EVALSHA_RO · Valkey

EVALSHA_RO

Executes a read-only server-side Lua script by SHA1 digest.

Usage

EVALSHA_RO sha1 numkeys key [key…] arg [arg…]

Description

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.

Reply

The return value depends on the script that was executed.

Complexity

Depends on the script that is executed.

ACL Categories

@scripting @slow

History

See also

EVAL, EVALSHA, EVAL_RO, FCALL, FCALL_RO, FUNCTION, FUNCTION DELETE, FUNCTION DUMP, FUNCTION FLUSH, FUNCTION HELP, FUNCTION KILL, FUNCTION LIST, FUNCTION LOAD, FUNCTION RESTORE, FUNCTION STATS, SCRIPT, SCRIPT DEBUG, SCRIPT EXISTS, SCRIPT FLUSH, SCRIPT HELP, SCRIPT KILL, SCRIPT LOAD, SCRIPT SHOW.