CF.COUNT key item
@cuckoo,
@read,
@slow,
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.
keyis key name for a cuckoo filter.
itemis an item to check.
redis> CF.INSERT cf ITEMS item1 item2 item2
1) (integer) 1
2) (integer) 1
3) (integer) 1
redis> CF.COUNT cf item1
(integer) 1
redis> CF.COUNT cf item2
(integer) 2| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
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.