Module Hub Beta

SBF.CHECK

key elem

Checks if elem exists in key.

Return Value

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

Examples

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

© 2017 Redis Labs, Inc. All rights reserved.