CF.LOADCHUNK key iterator data

Available in: Redis Stack

Time complexity: O(n), where n is the capacity

Restores a filter previously saved using SCANDUMP. See the SCANDUMP command for example usage.

This command overwrites any cuckoo filter stored under key. Make sure that the cuckoo filter is not be modified between invocations.

Parameters

  • key: Name of the key to restore
  • iter: Iterator value associated with data (returned by SCANDUMP)
  • data: Current data chunk (returned by SCANDUMP)

Return

[] otherwise.

Examples

See BF.SCANDUMP for an example.