{
  "id": "cms.info",
  "title": "CMS.INFO",
  "url": "https://redis.io/docs/latest/commands/cms.info/",
  "summary": "Returns information about a sketch",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-04-09T10:29:34-04:00",
  "page_type": "content",
  "content_hash": "d3f46f64aa7261d3c8fd31a76c25b29fc08b4206c5f5c62bc1345f61db85dcb8",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Returns width, depth and total count of the sketch."
    },
    {
      "id": "parameters",
      "title": "Parameters:",
      "role": "parameters",
      "text": "* **key**: The name of the sketch."
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "[code example]"
    },
    {
      "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=\"Supported\">&#x2705; Supported</span><br /> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n\n* [Array reply]() of [simple string reply]() and [integer reply]() pairs containing sketch information.\n* [Simple error reply]() in these cases: invalid arguments, missing key, or wrong key type.\n\n**RESP3:**\n\nOne of the following:\n\n* [Map reply]() of [simple string reply]() and [integer reply]() pairs containing sketch information.\n* [Simple error reply]() in these cases: invalid arguments, missing key, or wrong key type."
    }
  ],
  "examples": [
    {
      "id": "examples-ex0",
      "language": "plaintext",
      "code": "redis> CMS.INFO test\n 1) width\n 2) (integer) 2000\n 3) depth\n 4) (integer) 7\n 5) count\n 6) (integer) 0",
      "section_id": "examples"
    }
  ]
}
