BF.LOADCHUNK
BF.LOADCHUNK key iterator data
loadchunk(
key: str, // The name of the Bloom filter
iter: int, // Iterator value from SCANDUMP
data: bytes // Data chunk from SCANDUMP
) → str // OK on success
- Available in:
- Redis Open Source / Bloom 1.0.0
- Time complexity:
- O(n), where n is the capacity
- ACL categories:
-
@bloom,@write,@slow, - Compatibility:
- Redis Software and Redis Cloud compatibility
Restores a Bloom filter previously saved using BF.SCANDUMP.
See the BF.SCANDUMP command for example usage.
- 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)
Examples
See BF.SCANDUMP for an example.
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
Return information
One of the following:
- Simple string reply:
OKif executed correctly. - Simple error reply in these cases: invalid arguments, wrong key type, or when invalid data was passed.
One of the following:
- Simple string reply:
OKif executed correctly. - Simple error reply in these cases: invalid arguments, wrong key type, or when invalid data was passed.