EVALSHA · Valkey

EVALSHA

Executes a server-side Lua script by SHA1 digest.

Usage

EVALSHA sha1 numkeys key [key…] arg [arg…]

Description

Evaluate a script from the server’s cache by its SHA1 digest.

The server caches scripts by using the SCRIPT LOAD command. The command is otherwise identical to EVAL.

Please refer to the Valkey Programmability and Introduction to Eval Scripts for more information about Lua 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_RO, 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.