content/commands/cf.count.md
Returns an estimation of the number of times a given item was added to a cuckoo filter.
If you just want to check that a given item was added to a cuckoo filter, use [CF.EXISTS]({{< relref "commands/cf.exists/" >}}).
is key name for a cuckoo filter.
</details> <details open><summary><code>item</code></summary>is an item to check.
</details>{{< highlight bash >}} redis> CF.INSERT cf ITEMS item1 item2 item2
| 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="cf-count-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
item was added to the filter. An overestimation is possible, but not an underestimation. 0 means that key does not exist or that item had not been added to the filter. See the note in [CF.DEL]({{< relref "commands/cf.del/" >}}).-tab-sep-
One of the following:
item was added to the filter. An overestimation is possible, but not an underestimation. 0 means that key does not exist or that item had not been added to the filter. See the note in [CF.DEL]({{< relref "commands/cf.del/" >}}).{{< /multitabs >}}