Skip to main content

BF.MEXISTS

Syntax

BF.MEXISTS key item [item ...]

Time complexity: O(1) for each item checked, so O(N) to check N items when the command is called with multiple arguments.

ACL categories: @bloom

Checks for the existence of one or more items in a Bloom filter key.

Return

Array reply: an array of integers, each representing the result for an individual item as if being processed by the BF.EXISTS command:

  • 1 if the item exists with a high probability.
  • 0 if the item definitely does not exist.

Examples

dragonfly> BF.MADD bf Hello World
1) (integer) 1
2) (integer) 1

dragonfly> BF.MEXISTS bf Hello World SomethingElse
1) (integer) 1
2) (integer) 1
3) (integer) 0

See also

BF.MADD | BF.EXISTS