{
  "schema_version": 2,
  "id": "commands/move",
  "title": "MOVE",
  "url": "https://redis.io/docs/latest/commands/move/",
  "summary": "Moves a key to another database.",
  "since": "1.0.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": "5554d13f696f5adcb6751257427729265e5e54d8edce7fe8bf20b14a91179012",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Move `key` from the currently selected database (see [`SELECT`](https://redis.io/docs/latest/commands/select)) to the specified\ndestination database.\nWhen `key` already exists in the destination database, or it does not exist in\nthe source database, it does nothing.\nIt is possible to use `MOVE` as a locking primitive because of this."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nThe name of the key.\n\n</details>\n\n<details open><summary><code>db</code></summary>\n\nThe destination database index.\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> | Redis Software does not support shared databases due to potential negative performance impacts and blocks any related commands. |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n* [Integer reply](../../develop/reference/protocol-spec#integers): `1` if _key_ was moved.\n* [Integer reply](../../develop/reference/protocol-spec#integers): `0` if _key_ wasn't moved.\n\n**RESP3:**\n\nOne of the following:\n* [Integer reply](../../develop/reference/protocol-spec#integers): `1` if _key_ was moved.\n* [Integer reply](../../develop/reference/protocol-spec#integers): `0` if _key_ wasn't moved."
    }
  ],
  "examples": []
}
