This module provides a scalable bloom filter as a Redis data type. Bloom filters are probabilistic data structures that do a very good job of quickly determining if something is contained within a set.
Note: You can also build and load the module yourself.
You can find a command reference in Commands.md
docker run -p 6379:6379 --name redis-rebloom redislabs/rebloom:latest
docker exec -it redis-rebloom bash
# redis-cli
# 127.0.0.1:6379>
Start a new bloom filter by adding a new item
# 127.0.0.1:6379> BF.ADD newFilter foo
(integer) 1
Checking if an item exists in the filter
# 127.0.0.1:6379> BF.EXISTS newFilter foo
(integer) 1
In order to use this module, build it using make
and load it into Redis.
Invoking redis with the module loaded
$ redis-server --loadmodule /path/to/rebloom.so
You can find a command reference in docs/Commands.md