cihanb / rebloom

Bloom Filter Datatype for Redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReBloom - Bloom Filter Module for Redis

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.

CircleCI

Quick Start Guide

  1. Launch ReBloom with Docker
  2. Use Rebloom with redis-cli

Note: You can also build and load the module yourself.

You can find a command reference in Commands.md

1. Launch ReBloom with Docker

docker run -p 6379:6379 --name redis-rebloom redislabs/rebloom:latest

2. Use ReBloom with redis-cli

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

Building and Loading ReBloom

In order to use this module, build it using make and load it into Redis.

Loading

Invoking redis with the module loaded

$ redis-server --loadmodule /path/to/rebloom.so

You can find a command reference in docs/Commands.md

About

Bloom Filter Datatype for Redis

License:GNU Affero General Public License v3.0


Languages

Language:C 91.8%Language:Python 5.5%Language:Makefile 2.7%