{
  "schema_version": 2,
  "id": "commands/bf.mexists",
  "title": "BF.MEXISTS",
  "url": "https://redis.io/docs/latest/commands/bf.mexists/",
  "summary": "Checks whether one or more items exist in a Bloom Filter",
  "since": "1.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:54+01:00",
  "page_type": "content",
  "content_hash": "c726e3e19e37db1da81527af59a39f7668e8c5393859b3a62de6b223d9de15eb",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Determines whether one or more items were added to a Bloom filter.\n\nThis command is similar to [`BF.EXISTS`](https://redis.io/docs/latest/commands/bf.exists), except that more than one item can be checked."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nis key name for a Bloom filter.\n\n</details>\n\n<details open><summary><code>item...</code></summary>\n\nOne or more items to check.\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> BF.MADD bf item1 item2\n1) (integer) 1\n2) (integer) 1\nredis> BF.MEXISTS bf item1 item2 item3\n1) (integer) 1\n2) (integer) 1\n3) (integer) 0"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Supported\">&#x2705; Supported</span><br /> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n* An [array](https://redis.io/docs/latest/develop/reference/protocol-spec#arrays) of [integers](https://redis.io/docs/latest/develop/reference/protocol-spec#integers), where each element corresponds to an item in the request. A value of `1` means the item was probably already added to the filter. A value of `0` means the item was definitely not added, `key` does not exist, or `key` contains a value of the wrong type.\n* [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) if invalid arguments are passed.\n\n**RESP3:**\n\nOne of the following:\n* An [array](https://redis.io/docs/latest/develop/reference/protocol-spec#arrays) of [booleans](https://redis.io/docs/latest/develop/reference/protocol-spec#booleans), where each element corresponds to an item in the request. A value of `true` means the item was probably already added to the filter. A value of `false` means the item was definitely not added, `key` does not exist, or `key` contains a value of the wrong type.\n* [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) if invalid arguments are passed."
    }
  ],
  "examples": []
}
