CF.MEXISTS
Syntax
CF.MEXISTS key item [item ...]
- Available in:
- Redis Stack / Bloom 1.0.0
- Time complexity:
- O(k * n), where k is the number of sub-filters and n is the number of items
Determines whether one or more items were added to a cuckoo filter.
This command is similar to CF.EXISTS, except that more than one item can be checked.
Required arguments
key
is key name for a cuckoo filter.
item...
One or more items to check.
Return value
Returns one of these replies:
- Array reply of Integer reply - where "1" means that, with high probability,
itemwas already added to the filter, and "0" means thatkeydoes not exist or thatitemhad not added to the filter. See note inCF.DEL. - [] on error (invalid arguments, wrong key type, etc.)
Examples
redis> CF.INSERT cf ITEMS item1 item2
1) (integer) 1
2) (integer) 1
redis> CF.MEXISTS cf item1 item2 item3
1) (integer) 1
2) (integer) 1
3) (integer) 0