BF.EXISTS key item
@bloom,
@read,
@slow,
Determines whether a given item was added to a Bloom filter.
This command is similar to BF.MEXISTS, except that only one item can be checked.
keyis key name for a Bloom filter.
itemis an item to check.
redis> BF.ADD bf item1
(integer) 1
redis> BF.EXISTS bf item1
(integer) 1
redis> BF.EXISTS bf item2
(integer) 0| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
One of the following:
1 means that, with high probability, item was already added to the filter, and 0 means that either the key does not exist or that the item had not been added to the filter.