> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3089.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SCRIPT LOAD

> Load the specified Lua script into the script cache.

## Arguments

<ParamField body="script" type="string" required>
  The script to load.
</ParamField>

## Response

<ResponseField type="string" required>
  The sha1 of the script.
</ResponseField>

<RequestExample>
  ```ts Example theme={null}
  const script = `
    local value = redis.call('GET', KEYS[1])
    return value
  `;
  const sha1 = await redis.scriptLoad(script);

  ```
</RequestExample>


## Related topics

- [SCRIPT LOAD](/redis/sdks/py/commands/scripts/script_load.md)
- [FUNCTION LOAD](/redis/commands/functions/function-load.md)
- [SCRIPT EXISTS](/redis/commands/scripting/script-exists.md)
- [Scripting commands](/redis/commands/scripting/overview.md)
