{
  "schema_version": 2,
  "id": "commands/readwrite",
  "title": "READWRITE",
  "url": "https://redis.io/docs/latest/commands/readwrite/",
  "summary": "Enables read-write queries for a connection to a Redis Cluster replica node.",
  "since": "3.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:21+01:00",
  "page_type": "content",
  "content_hash": "d796cd31c3febefc13c45524be491a2b6b3fbe22ea2053bc82868eb55978bfc7",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Disables read queries for a connection to a Redis Cluster replica node.\n\nRead queries against a Redis Cluster replica node are disabled by default,\nbut you can use the [`READONLY`](https://redis.io/docs/latest/commands/readonly) command to change this behavior on a per-\nconnection basis. The `READWRITE` command resets the readonly mode flag\nof a connection back to readwrite."
    },
    {
      "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`.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK`."
    }
  ],
  "examples": []
}
