CF.MEXISTS
CF.MEXISTS key item [item ...]
- Available in:
- Redis Open Source / Bloom 1.0.0
- Time complexity:
- O(k * n), where k is the number of sub-filters and n is the number of items
- ACL categories:
-
@cuckoo,@read,@slow, - Compatibility:
- Redis Software and Redis Cloud compatibility
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.
Examples
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
Return information
One of the following:
- An array of integers, where each element corresponds to an item in the request. A value of
1means the item was probably already added to the filter. A value of0means the item was definitely not added,keydoes not exist, orkeycontains a value of the wrong type. - Simple error reply if invalid arguments are passed.