Module Hub Beta

CBF.ADD

key elem [elem ...]

Adds one or more elements to the filter in key.

If key doesn’t exist, the filter is created with the default capacity (100000) and error rate (0.05).

Return Value

Integer¬†reply: the filter’s current count of elements.

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.