Skip to content

Latest commit

Β 

History

History
42 lines (35 loc) Β· 1.3 KB

redis.md

File metadata and controls

42 lines (35 loc) Β· 1.3 KB

If you're familiar with redis already and want to use an existing server or a system installation, you can use that databse. Just make sure you know your redis connection details and have RedisBloom loaded into your server (with config files or command line args)

Included launch scripts assume this repo structure but it's easily changed:

β”œβ”€β”€ dataportraits
β”‚Β Β  β”œβ”€β”€ datasketch.py
β”‚Β Β  β”œβ”€β”€ __init__.py
β”œβ”€β”€ easy_redis.py
β”œβ”€β”€ RedisBloom
β”‚Β Β  └── bin/linux-x64-release/redisbloom.so
β”œβ”€β”€ redis_configs
β”œβ”€β”€ redis-stable
β”‚Β Β  └── bin/redis-server
└── start_redis_ez.sh

For clarity, we write out install_redis.sh here. Note the submodules and specific version tag.

set -ex

# base redis
wget https://download.redis.io/redis-stable.tar.gz
tar -xzf redis-stable.tar.gz
cd redis-stable
make -j 4
make install PREFIX="$(pwd)" # install to redis-stable/bin
cd ..

# Install bloom filter package`
git clone https://github.com/RedisBloom/RedisBloom.git
cd RedisBloom
git checkout tags/v2.4.3
git submodule update --init --recursive
make -j 4
cd ..

Our code was tested against RedisBloom version 2.4.3. We assume a certain binary header structure in serialized Bloom filter files, other redis versions may change this and break the file format!