{
  "schema_version": 2,
  "id": "commands/script-load",
  "title": "SCRIPT LOAD",
  "url": "https://redis.io/docs/latest/commands/script-load/",
  "summary": "Loads a server-side Lua script to the script cache.",
  "since": "2.6.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:32+01:00",
  "page_type": "content",
  "content_hash": "497bf58fee57b9373eb20a25cd4e7ae9af6ad69abf0d518111e1cf2b3442d247",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Load a script into the scripts cache, without executing it.\nAfter the specified command is loaded into the script cache it will be callable\nusing [`EVALSHA`](https://redis.io/docs/latest/commands/evalsha) with the correct SHA1 digest of the script, exactly like after\nthe first successful invocation of [`EVAL`](https://redis.io/docs/latest/commands/eval).\n\nThe script is guaranteed to stay in the script cache forever (unless `SCRIPT\nFLUSH` is called).\n\nThe command works in the same way even if the script was already present in the\nscript cache.\n\nFor more information about [`EVAL`](https://redis.io/docs/latest/commands/eval) scripts please see [Introduction to Eval Scripts](https://redis.io/docs/latest/develop/programmability/eval-intro)."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>script</code></summary>\n\nThe Lua script to load into the script cache. Its SHA1 digest is returned for use with `EVALSHA`.\n\n</details>"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Supported\">&#x2705; Standard</span><br /><span title=\"Supported\"><nobr>&#x2705; Active-Active</nobr></span> | <span title=\"Supported\">&#x2705; Standard</span><br /><span title=\"Supported\"><nobr>&#x2705; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): the SHA1 digest of the script added into the script cache.\n\n**RESP3:**\n\n[Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): the SHA1 digest of the script added into the script cache."
    }
  ],
  "examples": []
}
