{
  "id": "argetrange",
  "title": "ARGETRANGE",
  "url": "https://redis.io/docs/latest/commands/argetrange/",
  "summary": "Gets values in a range of 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": "0b895d916c6168826ac5bebb55765f386051fde19f67f18752b0817725517c0f",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Gets values in a range of 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>start</code></summary>\n\nThe zero-based integer index of the first element to return. If `start` is greater than `end`, elements are returned in reverse index order.\n\n</details>\n\n<details open><summary><code>end</code></summary>\n\nThe zero-based integer index of the last element to return (inclusive). If `end` is less than `start`, elements are returned in reverse index order.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "ARMSET myarray 0 \"a\" 1 \"b\" 3 \"d\"\nARGETRANGE myarray 0 3\nARGETRANGE myarray 3 0"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Array reply](../../develop/reference/protocol-spec#arrays)\n\n**RESP3:**\n\n[Array reply](../../develop/reference/protocol-spec#arrays)"
    }
  ],
  "examples": []
}
