---
acl_categories:
- '@cuckoo'
- '@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: cf
hidden: false
linkTitle: CF.LOADCHUNK
module: Bloom
railroad_diagram: /images/railroad/cf.loadchunk.svg
since: 1.0.0
stack_path: docs/data-types/probabilistic
summary: Restores a filter previously saved using SCANDUMP
syntax_fmt: CF.LOADCHUNK key iterator data
title: CF.LOADCHUNK
---
Restores a cuckoo filter previously saved using [`CF.SCANDUMP`]({{< relref "commands/cf.scandump/" >}}).
See the [`CF.SCANDUMP`]({{< relref "commands/cf.scandump/" >}}) command for example usage.
Notes
- This command overwrites the cuckoo filter stored under `key`.
- Make sure that the cuckoo filter is not changed between invocations.
## Required arguments
key
is key name for a cuckoo filter to restore.
iterator
Iterator value associated with `data` (returned by [`CF.SCANDUMP`]({{< relref "commands/cf.scandump/" >}}))
data
Current data chunk (returned by [`CF.SCANDUMP`]({{< relref "commands/cf.scandump/" >}}))
## Return value
Returns one of these replies:
- [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) - `OK` if executed correctly
- [] on error (invalid arguments, wrong key type, wrong data, etc.)
## Examples
See [`CF.SCANDUMP`]({{< relref "commands/cf.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 >}}