BF.MEXISTS
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.
Return value
Section titled “Return value”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.
Examples
Section titled “Examples”127.0.0.1:6379> BF.MADD visitors alice carol1) (integer) 12) (integer) 1127.0.0.1:6379> BF.MEXISTS visitors alice bob carol1) (integer) 12) (integer) 03) (integer) 1Compatibility
Section titled “Compatibility”Same as BF.MEXISTS in RedisBloom for Bloom filter keys and missing keys.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.