{
  "id": "arseek",
  "title": "ARSEEK",
  "url": "https://redis.io/docs/latest/commands/arseek/",
  "summary": "Sets the ARINSERT / ARRING cursor to a specific index.",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-05-25T10:30:01-07:00",
  "page_type": "content",
  "content_hash": "2915494b42d70459dd1112518affa8da9c2f310357352885af0857b7ff8394a6",
  "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": "ARINSERT myarray \"a\"\nARINSERT myarray \"b\"\nARNEXT myarray\nARSEEK myarray 10\nARINSERT myarray \"c\"\nARNEXT myarray"
    },
    {
      "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": []
}
