Back to Redis

BF.LOADCHUNK

content/commands/bf.loadchunk.md

latest2.0 KB
Original Source

Restores a Bloom filter previously saved using [BF.SCANDUMP]({{< relref "commands/bf.scandump/" >}}).

See the [BF.SCANDUMP]({{< relref "commands/bf.scandump/" >}}) command for example usage.

<note><b>Notes</b>

  • This command overwrites the Bloom filter stored under key.
  • Make sure that the Bloom filter is not changed between invocations.
</note>

Required arguments

<details open><summary><code>key</code></summary>

is key name for a Bloom filter to restore.

</details> <details open><summary><code>iterator</code></summary>

Iterator value associated with data (returned by [BF.SCANDUMP]({{< relref "commands/bf.scandump/" >}}))

</details> <details open><summary><code>data</code></summary>

Current data chunk (returned by [BF.SCANDUMP]({{< relref "commands/bf.scandump/" >}}))

</details>

Examples

See [BF.SCANDUMP]({{< relref "commands/bf.scandump/" >}}) for an example.

Redis Software and Redis Cloud compatibility

| 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> | |

Return information

{{< multitabs id="bf-loadchunk-return-info" tab1="RESP2" tab2="RESP3" >}}

One of the following:

  • [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): OK if executed correctly.
  • [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, wrong key type, or when invalid data was passed.

-tab-sep-

One of the following:

  • [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): OK if executed correctly.
  • [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, wrong key type, or when invalid data was passed.

{{< /multitabs >}}