valkey-bloom) provides a probabilistic data structure for efficiently determining whether an element may be present in a set. This module is suitable for big data scenarios such as cache penetration protection, URL deduplication, user recommendation deduplication, traffic anomaly detection, and real-time quantile monitoring. This module is supported starting from Valkey 8.0 and is not part of the Redis core command set.BF.ADD, BF.MADD, BF.EXISTS, BF.MEXISTS, and BF.CARD. These commands are used to add an element to a Bloom filter, add elements in batches, check whether an element exists, check for existence in batches, and obtain an estimated number of unique elements added. Both the Valkey 8.0 standard architecture and cluster architecture support them. Among these, BF.ADD and BF.MADD automatically create a filter with default parameters when the filter does not exist.BF.RESERVE, BF.INSERT, and BF.INFO. These commands are used to create an empty Bloom filter with specified attributes (where the error rate and capacity can be preset), create a filter with initial elements, and view the filter's usage information and attributes. Both the Valkey 8.0 standard architecture and cluster architecture support them.BF.LOAD. It is used for Bloom filter restoration during AOF rewriting. Both the Valkey 8.0 standard architecture and cluster architecture support it.Command | Valkey 9.0 Standard Architecture | Valkey 9.0 Cluster Architecture | Valkey 8.0 Standard Architecture | Valkey 8.0 Cluster Architecture |
bf.add | ✓ | ✓ | ✓ | ✓ |
bf.madd | ✓ | ✓ | ✓ | ✓ |
bf.exists | ✓ | ✓ | ✓ | ✓ |
bf.mexists | ✓ | ✓ | ✓ | ✓ |
bf.card | ✓ | ✓ | ✓ | ✓ |
bf.reserve | ✓ | ✓ | ✓ | ✓ |
bf.insert | ✓ | ✓ | ✓ | ✓ |
bf.info | ✓ | ✓ | ✓ | ✓ |
bf.load | ✓ | ✓ | ✓ | ✓ |
피드백