{
  "schema_version": 2,
  "id": "commands/module-loadex",
  "title": "MODULE LOADEX",
  "url": "https://redis.io/docs/latest/commands/module-loadex/",
  "summary": "Loads a module using extended parameters.",
  "since": "7.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:09+01:00",
  "page_type": "content",
  "content_hash": "b4efdf839591ea95231b7c5a90ba352aad58807dfe72637e3972f1cea56ef884",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Loads a module from a dynamic library at runtime with configuration directives.\n\nThis is an extended version of the [`MODULE LOAD`](https://redis.io/docs/latest/commands/module-load) command.\n\nIt loads and initializes the Redis module from the dynamic library specified by the `path` argument. The `path` should be the absolute path of the library, including the full filename.\n\nYou can use the optional `CONFIG` argument to provide the module with configuration directives.\nAny additional arguments that follow the `ARGS` keyword are passed unmodified to the module.\n\n**Note**: modules can also be loaded at server startup with `loadmodule`\nconfiguration directive in `redis.conf`."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>path</code></summary>\n\nThe absolute path to the module library file.\n\n</details>"
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>CONFIG name value [CONFIG name value ...]</code></summary>\n\nOne or more module configuration name-value pairs to set at load time.\n\n</details>\n\n<details open><summary><code>ARGS args [args ...]</code></summary>\n\nAdditional arguments passed to the module's initialization function.\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=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the module was loaded.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the module was loaded."
    }
  ],
  "examples": []
}
