Arguments
string
required
The lua script to run.
string[]
required
All of the keys accessed in the script
unknown[]
required
All of the arguments you passed to the script
Response
The result of the script.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const script = `
return ARGV[1]
`
const result = await redis.eval(script, [], ["hello"]);
console.log(result) // "hello"
Evaluate a Lua script server side.
const script = `
return ARGV[1]
`
const result = await redis.eval(script, [], ["hello"]);
console.log(result) // "hello"
Was this page helpful?