{
  "schema_version": 2,
  "id": "commands/arseek",
  "title": "ARSEEK",
  "url": "https://redis.io/docs/latest/commands/arseek/",
  "summary": "Sets the ARINSERT / ARRING cursor to a specific index.",
  "since": "8.8.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T16:45:12+01:00",
  "page_type": "content",
  "content_hash": "3bf7f2bc3ae025b18f8ba2fbed393e8b53d5069980270ef46d176d09b0e84a5e",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Sets the ARINSERT / ARRING cursor to a specific index."
    },
    {
      "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>index</code></summary>\n\nThe zero-based integer index to set as the new insert cursor position for subsequent [`ARINSERT`](https://redis.io/docs/latest/commands/arinsert) calls.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> ARINSERT myarray \"a\"\n(integer) 0\nredis> ARINSERT myarray \"b\"\n(integer) 1\nredis> ARNEXT myarray\n(integer) 2\nredis> ARSEEK myarray 10\n(integer) 1\nredis> ARINSERT myarray \"c\"\n(integer) 10\nredis> ARNEXT myarray\n(integer) 11"
    },
    {
      "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[Integer reply](../../develop/reference/protocol-spec#integers): 1 if the cursor was set, 0 if the key does not exist.\n\n**RESP3:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): 1 if the cursor was set, 0 if the key does not exist."
    }
  ],
  "examples": []
}
