Back to Redis

CF.LOADCHUNK

content/commands/cf.loadchunk.md

latest2.3 KB
Original Source

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.

<note><b>Notes</b>

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

Required arguments

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

is key name for a cuckoo filter to restore.

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

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

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

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

</details>

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