content/commands/bf.madd.md
Adds one or more items to a Bloom filter.
This command is similar to [BF.ADD]({{< relref "commands/bf.add/" >}}), except that you can add more than one item.
This command is similar to [BF.INSERT]({{< relref "commands/bf.insert/" >}}), except that the error rate, capacity, and expansion cannot be specified.
is key name for a Bloom filter to add the items to.
If key does not exist - a new Bloom filter is created with default error rate, capacity, and expansion (see [BF.RESERVE]({{< relref "commands/bf.reserve/" >}})).
One or more items to add.
</details>| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
Returns one of these replies:
{{< highlight bash >}} redis> BF.MADD bf item1 item2 item2
{{< multitabs id="bf-madd-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
1 means that the item has been added successfully, and 0 means there's a probability that the item was already added to the filter.-tab-sep-
One of the following:
true means that the item has been added successfully, and false means there's a probability that the item was already added to the filter.{{< /multitabs >}}