For this quick start, you will need the following:

Create a new database that uses the Module

  1. Navigate to databases tab
  2. Click on the + sign, if necessary, then create database
  3. On the create database screen, check the box for Redis Modules and select the ReBloom module you want to use for this database.

    rebloom_database

  4. Click Show advanced options and put 12544 for the port.

  5. Click the Activate button

Using Bloom filters in Redis Enterprise Software

Trying It Out

You can play with it a bit using redis-cli:

 127.0.0.1:12544> BF.ADD bloom kirk
 1) (integer) 1
 127.0.0.1:12544> BF.ADD bloom redis
 1) (integer) 1
 127.0.0.1:12544> BF.EXISTS bloom kirk
 (integer) 1
 127.0.0.1:12544> BF.EXISTS bloom redis
 (integer) 1
 127.0.0.1:12544> BF.EXISTS bloom nonexist
 (integer) 0
 127.0.0.1:12544> BF.EXISTS bloom que?
 (integer) 0
 127.0.0.1:12544>
 127.0.0.1:12544> BF.MADD bloom elem1 elem2 elem3
 1) (integer) 1
 2) (integer) 1
 3) (integer) 1
 127.0.0.1:12544> BF.MEXISTS bloom elem1 elem2 elem3
 1) (integer) 1
 2) (integer) 1
 3) (integer) 1

You can also create a custom Bloom filter. The BF.ADD command creates a new Bloom filter suitable for a small-ish number of items. This consumes less memory but may not be ideal for large filters. In that case:

 127.0.0.1:12544> BF.RESERVE largebloom 0.0001 1000000
 OK
 127.0.0.1:12544> BF.ADD largebloom kirk
 1) (integer) 1

Using Cuckoo filters in Redis Enterprise Software

Cuckoo filters can also be used as part of the ReBloom module. You can play with it using redis-cli:

127.0.0.1:6379> CF.ADD cuckoo redis
(integer) 1
127.0.0.1:6379> CF.EXISTS newcuckoo redis
(integer) 1
127.0.0.1:6379> CF.EXISTS newcuckoo notpresent
(integer) 0
127.0.0.1:6379> CF.DEL newcuckoo redis
(integer) 1

For more information, please see Developing with Bloom Filters.

For in depth information on Cuckoo filters you can visit the original Cuckoo Filter paper.