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

Arguments

script
string
required

The 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.eval(script, [], ["hello"]);
console.log(result) // "hello"