What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

EVALSHA_RO

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

Usage
EVALSHA_RO sha1 numkeys [key ...] [arg ...]
Complexity
Depends on the script that is executed.
Since
7.0.0
ACL Categories
@scripting, @slow
Command flags
NOSCRIPT, SKIP_MONITOR, NO_MANDATORY_KEYS, STALE, READONLY

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.

Replies

RESP2

The return value depends on the script that was executed.

RESP3

The return value depends on the script that was executed.