const result = await redis.evalshaRo("fb67a0c03b48ddbf8b4c9b011e779563bdbc28cb", [], ["hello"]);console.log(result) // "hello"
Scripts
EVALSHA_RO
Evaluate a cached read-only Lua script server side.
Copy
Ask AI
const result = await redis.evalshaRo("fb67a0c03b48ddbf8b4c9b011e779563bdbc28cb", [], ["hello"]);console.log(result) // "hello"
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.