BF.INFO
BF.INFO key [CAPACITY | SIZE | FILTERS | ITEMS | EXPANSION]
- Available in:
- Redis Open Source / Bloom 1.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@bloom,@read,@fast, - Compatibility:
- Redis Software and Redis Cloud compatibility
Returns information about a Bloom filter.
Required arguments
key
is key name for a Bloom filter.
Optional arguments
CAPACITY
Return the number of unique items that can be stored in this Bloom filter before scaling would be required (including already added items).
SIZE
Return the memory size: number of bytes allocated for this Bloom filter.
FILTERS
Return the number of sub-filters.
ITEMS
Return the number of items that were added to this Bloom filter and detected as unique (items that caused at least one bit to be set in at least one sub-filter).
EXPANSION
Return the expansion rate.
Examples
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
Return information
One of the following:
- A singleton array reply with an integer representing the value of the requested property.
- An array reply with simple string and integer pairs.
- Simple error reply in these cases: invalid arguments, wrong key type, or when the key does not exist.