RedisBloom module provides four datatypes, a Scalable Bloom Filter and Cuckoo Filter, a Count-Mins-Sketch and a Top-K. Bloom and Cuckoo filters are used to determine (with a given degree of certainty) whether an item is present or absent from a collection. While Count-Min Sketch is used to approximate count of items in sub-linear space and Top-K maintains a list of K most frequent items.
Note: You can also build and load the module yourself.
docker run -p 6379:6379 --name redis-redisbloom redislabs/rebloom:latest
docker exec -it redis-redisbloom 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/redisbloom.so
Project | Language | License | Author | URL |
---|---|---|---|---|
redisbloom-py | Python | BSD | Redis Labs | GitHub |
JReBloom | Java | BSD | Redis Labs | GitHub |
rebloom | JavaScript | MIT | Albert Team | GitHub |
Documentation and full command reference at redisbloom.io.
Got questions? Feel free to ask at the RedisBloom mailing list.
Redis Source Available License Agreement - see LICENSE