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.

Arguments

script
string
required
The read-only lua script to run.
keys
string[]
required
All of the keys accessed in the script
args
unknown[]
required
All of the arguments you passed to the script

Response

The result of the script.
const script = `
    return ARGV[1]
`
const result = await redis.evalRo(script, [], ["hello"]);
console.log(result) // "hello"