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 Bloom filter previously saved using BF.SCANDUMP.

See the BF.SCANDUMP command for example usage.

Notes

  • This command overwrites the Bloom filter stored under key.
  • Make sure that the Bloom filter is not changed between invocations.

Required arguments

key

is key name for a Bloom filter to restore.

iterator

Iterator value associated with data (returned by BF.SCANDUMP)

data

Current data chunk (returned by BF.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 BF.SCANDUMP for an example.


Rate this page