content/commands/bf.info.md
Returns information about a Bloom filter.
is key name for a Bloom filter.
</details>Return the number of unique items that can be stored in this Bloom filter before scaling would be required (including already added items).
</details> <details open><summary><code>SIZE</code></summary>Return the memory size: number of bytes allocated for this Bloom filter.
</details> <details open><summary><code>FILTERS</code></summary>Return the number of sub-filters.
</details> <details open><summary><code>ITEMS</code></summary>Return 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).
</details> <details open><summary><code>EXPANSION</code></summary>Return the expansion rate.
</details>{{< highlight bash >}} redis> BF.ADD bf1 observation1 (integer) 1 redis> BF.INFO bf1
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="bf-info-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
-tab-sep-
One of the following:
{{< /multitabs >}}