{
  "id": "bf.info",
  "title": "BF.INFO",
  "url": "https://redis.io/docs/latest/commands/bf.info/",
  "summary": "Returns information about a Bloom Filter",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-04-09T10:29:34-04:00",
  "page_type": "content",
  "content_hash": "2e2b2967ca81f3358d0755a61d8474a241c781ed0827cba009f46ec8531d5685",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Returns information about a Bloom filter."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nis key name for a Bloom filter.\n</details>"
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>CAPACITY</code></summary>\n\nReturn the number of unique items that can be stored in this Bloom filter before scaling would be required (including already added items).\n</details>\n\n<details open><summary><code>SIZE</code></summary>\n\nReturn the memory size: number of bytes allocated for this Bloom filter.\n</details>\n\n<details open><summary><code>FILTERS</code></summary>\n\nReturn the number of sub-filters.\n</details>\n\n<details open><summary><code>ITEMS</code></summary>\n\nReturn the number of items that were added to this Bloom filter and detected as unique (items that caused at least one bit to be set in at least one sub-filter).\n</details>\n\n<details open><summary><code>EXPANSION</code></summary>\n\nReturn the expansion rate.\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> BF.ADD bf1 observation1\n(integer) 1\nredis> BF.INFO bf1\n 1) Capacity\n 2) (integer) 100\n 3) Size\n 4) (integer) 240\n 5) Number of filters\n 6) (integer) 1\n 7) Number of items inserted\n 8) (integer) 1\n 9) Expansion rate\n10) (integer) 2\nredis> BF.INFO bf1 CAPACITY\n1) (integer) 100"
    },
    {
      "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* A singleton [array reply]() with an [integer]() representing the value of the requested property.\n* An [array reply]() with [simple string]() and [integer]() pairs.\n* [Simple error reply]() in these cases: invalid arguments, wrong key type, or when the key does not exist.\n\n**RESP3:**\n\nOne of the following:\n* [Map reply]() with [simple string]() and [integer]() pairs.\n* [Simple error reply]() in these cases: invalid arguments, wrong key type, or when the key does not exist."
    }
  ],
  "examples": []
}
