CF.EXISTS
Syntax
CF.EXISTS key item
- Available in:
- Redis Stack / Bloom 1.0.0
- Time complexity:
- O(k), where k is the number of sub-filters
Check if an item
exists in a Cuckoo Filter key
Parameters
- key: The name of the filter
- item: The item to check for
Return
Integer reply - where "1" value means the item may exist in the filter, and a "0" value means it does not exist in the filter.
Examples
redis> CF.EXISTS cf item1
(integer) 1
redis> CF.EXISTS cf item_new
(integer) 0
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.