Module Hub Beta

CBF.CHECK

key elem

Checks if elem exists in key.

Return Value

Integer reply: 1 if the element exists, 0 otherwise.

Examples

redis> CBF.ADD bloom foo
(integer) 1
redis> CBF.ADD bloom bar
(integer) 2
redis> CBF.CHECK bloom foo
(integer) 1
redis> CBF.CHECK bloom bar
(integer) 1
redis> CBF.CHECK bloom baz
(integer) 0

© 2017 Redis Labs, Inc. All rights reserved.