{
  "schema_version": 2,
  "id": "commands/arinfo",
  "title": "ARINFO",
  "url": "https://redis.io/docs/latest/commands/arinfo/",
  "summary": "Returns metadata about an array.",
  "since": "8.8.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-07-24T11:07:00+02:00",
  "page_type": "content",
  "content_hash": "3d5b20a3463fc5dbaa7e5c7bf4bd6be6fbeff0c383420564132e8d422750a408",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Returns metadata about an array."
    },
    {
      "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>"
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>FULL</code></summary>\n\nWhen present, includes per-slice statistics in the reply: the number of dense and sparse slices and their average sizes and fill rates. Raises the complexity from O(1) to O(N) where N is the number of slices.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> ARMSET myarray 0 \"a\" 1 \"b\" 100 \"c\"\n(integer) 3\nredis> ARINSERT myarray \"d\"\n(integer) 0\nredis> ARINFO myarray\n 1) \"count\"\n 2) (integer) 3\n 3) \"len\"\n 4) (integer) 101\n 5) \"next-insert-index\"\n 6) (integer) 1\n 7) \"slices\"\n 8) (integer) 1\n 9) \"directory-size\"\n10) (integer) 1\n11) \"super-dir-entries\"\n12) (integer) 0\n13) \"slice-size\"\n14) (integer) 4096"
    },
    {
      "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[Array reply](../../develop/reference/protocol-spec#arrays)\n\n**RESP3:**\n\n[Map reply](../../develop/reference/protocol-spec#maps)"
    }
  ],
  "examples": []
}
