CF.COUNT key item
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
is key name for a cuckoo filter.
is an item to check.
Returns one of these replies:
- Integer reply, where a positive value is an estimation of the number of times
itemwas added to the filter. An overestimation is possible, but not an underestimation.
keydoes not exist or that
itemhad not been added to the filter. See note in
- Error reply on error (invalid arguments, wrong key type, etc.)
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