BF.LOADCHUNK

Syntax
BF.LOADCHUNK key iterator data
Available in:
Redis Stack / Bloom 1.0.0
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 bloom filter stored under key. Make sure that the bloom filter is not be changed 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

Simple string reply - OK if executed correctly, or Error reply otherwise.

Examples

See BF.SCANDUMP for an example.