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

CF.INSERT cf ITEMS item1 item2 CF.MEXISTS cf item1 item2 item3

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 1 means the item was probably already added to the filter. A value of 0 means the item was definitely not added, key does not exist, or key contains a value of the wrong type.
  • Simple error reply if invalid arguments are passed.
RATE THIS PAGE
Back to top ↑