---
acl_categories:
- '@bloom'
- '@write'
- '@slow'
arguments:
- name: key
type: key
- name: iterator
type: integer
- name: data
type: string
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
complexity: O(n), where n is the capacity
description: Restores a filter previously saved using SCANDUMP
group: bf
hidden: false
linkTitle: BF.LOADCHUNK
module: Bloom
railroad_diagram: /images/railroad/bf.loadchunk.svg
since: 1.0.0
stack_path: docs/data-types/probabilistic
summary: Restores a filter previously saved using SCANDUMP
syntax_fmt: BF.LOADCHUNK key iterator data
title: BF.LOADCHUNK
---
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.
Notes
- This command overwrites the Bloom filter stored under `key`.
- Make sure that the Bloom filter is not changed between invocations.
## Required arguments
key
is key name for a Bloom filter to restore.
iterator
Iterator value associated with `data` (returned by [`BF.SCANDUMP`]({{< relref "commands/bf.scandump/" >}}))
data
Current data chunk (returned by [`BF.SCANDUMP`]({{< relref "commands/bf.scandump/" >}}))
## Examples
See [`BF.SCANDUMP`]({{< relref "commands/bf.scandump/" >}}) for an example.
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis
Cloud | Notes |
|:----------------------|:-----------------|:------|
| ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | |
## 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 >}}