CF.LOADCHUNK

Syntax
CF.LOADCHUNK key iterator data
Available in:
Redis Stack / Bloom 1.0.0
Time complexity:
O(n), where n is the capacity

Restores a cuckoo filter previously saved using CF.SCANDUMP.

See the 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)

data

Current data chunk (returned by CF.SCANDUMP)

Return value

Returns one of these replies:

  • Simple string reply - OK if executed correctly
  • [] on error (invalid arguments, wrong key type, wrong data, etc.)

Examples

See CF.SCANDUMP for an example.


Rate this page