Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

BF.MEXISTS

Last updated
BF.MEXISTS key item [item ...]
Group
Bloom filter
Complexity
O(k * n), k hash functions and n items
Arity
-1 (at least 1 words, counting the command name)
Flags
none
Keys
first 1, last 1, step 1
HotKV Cloud
All plans
On-Premise
no license needed

BF.MEXISTS works like BF.EXISTS for several items at once. Each 0 is certain (never added); each 1 means probably added.

An array with one element per item:

Element RESP2 RESP3
Item may be present Integer 1 Boolean true
Item not present Integer 0 Boolean false

If the key does not exist, or holds another type, every element is 0.

127.0.0.1:6379> BF.MADD visitors alice carol
1) (integer) 1
2) (integer) 1
127.0.0.1:6379> BF.MEXISTS visitors alice bob carol
1) (integer) 1
2) (integer) 0
3) (integer) 1

Same as BF.MEXISTS in RedisBloom for Bloom filter keys and missing keys.

BF.EXISTS, BF.MADD