Arguments
string
required
The script to load.
Response
The sha1 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 = `
local value = redis.call('GET', KEYS[1])
return value
`;
const sha1 = await redis.scriptLoad(script);
Load the specified Lua script into the script cache.
const script = `
local value = redis.call('GET', KEYS[1])
return value
`;
const sha1 = await redis.scriptLoad(script);
Was this page helpful?