BF.MEXISTS

Syntax
BF.MEXISTS key item [item ...]
Available in:
Redis Stack / Bloom 1.0.0
Time complexity:
O(k * n), where k is the number of hash functions and n is the number of items

Determines if one or more items may exist in the filter or not.

Parameters

  • key: The name of the filter
  • items: One or more items to check

Return

Array reply of Integer reply - for each item where "1" value means the corresponding item may exist in the filter, and a "0" value means it does not exist in the filter.

Examples

redis> BF.MEXISTS bf item1 item_new
1) (integer) 1
2) (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.