{
  "id": "arinsert",
  "title": "ARINSERT",
  "url": "https://redis.io/docs/latest/commands/arinsert/",
  "summary": "Inserts one or more values at consecutive indices.",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-05-25T10:30:01-07:00",
  "page_type": "content",
  "content_hash": "bb519f1dba9e04078743231c015fbcd9d13ff297d27888feafcf0b2137855b5f",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Inserts one or more values at consecutive indices."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nThe name of the key that holds the array.\n\n</details>\n\n<details open><summary><code>value</code></summary>\n\nOne or more string values to insert at consecutive indices, beginning at the current insert cursor position. The cursor advances by one for each value inserted. Use [`ARNEXT`](https://redis.io/docs/latest/commands/arnext) to inspect the current cursor position and [`ARSEEK`](https://redis.io/docs/latest/commands/arseek) to reposition it.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "ARINSERT myarray \"alpha\"\nARINSERT myarray \"beta\"\nARINSERT myarray \"gamma\"\nARGET myarray 1\nARNEXT myarray"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): The last index where a value was inserted.\n\n**RESP3:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): The last index where a value was inserted."
    }
  ],
  "examples": []
}
