BF.MEXISTS

BF.MEXISTS key item [item ...]
Available in:
Redis Open Source / Bloom 1.0.0
Time complexity:
O(k * n), where k is the number of hash functions and n is the number of items
ACL categories:
@bloom, @read, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

Determines whether one or more items were added to a Bloom filter.

This command is similar to BF.EXISTS, except that more than one item can be checked.

Required arguments

key

is key name for a Bloom filter.

item...

One or more items to check.

Examples

BF.MADD bf item1 item2 BF.MEXISTS bf 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 ↑