BF.EXISTS
Syntax
BF.EXISTS key item
Time complexity: O(1)
ACL categories: @bloom
Checks for the existence of a single item in a Bloom filter key
.
Return
1
if the item exists with a high probability.0
if the item definitely does not exist.
Examples
dragonfly> BF.ADD bf Hello
(integer) 1
dragonfly> BF.EXISTS bf Hello
(integer) 1
dragonfly> BF.EXISTS bf World
(integer) 0