Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

EVALSHA_RO is like EVAL_RO but instead of sending the script over the wire every time, you reference the script by its SHA1 hash. This is useful for caching scripts on the server side.

Arguments

sha
str
required
The sha1 hash of the read-only script.
keys
List[str]
required
All of the keys accessed in the script
args
List[str]
required
All of the arguments you passed to the script

Response

The result of the script.
result = redis.evalsha_ro("fb67a0c03b48ddbf8b4c9b011e779563bdbc28cb", args=["hello"])
assert result = "hello"