[![GitHub issues](https://img.shields.io/github/release/RedisLabsModules/redisbloom.svg)](https://github.com/RedisBloom/RedisBloom/releases/latest)
[![CircleCI](https://circleci.com/gh/RedisBloom/RedisBloom.svg?style=svg)](https://circleci.com/gh/RedisBloom/RedisBloom)
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/redislabs/rebloom.svg)](https://hub.docker.com/r/redislabs/rebloom/builds/)
[![codecov](https://codecov.io/gh/RedisBloom/RedisBloom/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisBloom/RedisBloom)
[![Mailing List](https://img.shields.io/badge/Mailing%20List-RedisBloom-blue)](https://groups.google.com/forum/#!forum/redisbloom)
[![Gitter](https://badges.gitter.im/RedisLabs/RedisBloom.svg)](https://gitter.im/RedisLabs/RedisBloom?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
# RedisBloom - Bloom Filter Module for Redis
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.
## Quick Start Guide
1. [Launch RedisBloom with Docker](#launch-redisbloom-with-docker)
1. [Use RedisBloom with redis-cli](#use-redisbloom-with-redis-cli)
Note: You can also [build and load the module](#building-and-loading-redisbloom) yourself.
### 1. Launch RedisBloom with Docker
```
docker run -p 6379:6379 --name redis-redisbloom redislabs/rebloom:latest
```
### 2. Use RedisBloom with `redis-cli`
```
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
```
## Building and Loading RedisBloom
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/redisbloom.so
```
## Client libraries
| Project | Language | License | Author | URL |
| ------- | -------- | ------- | ------ | --- |
| redisbloom-py | Python | BSD | [Redis Labs](https://redislabs.com) | [GitHub](https://github.com/RedisBloom/redisbloom-py) |
| JReBloom | Java | BSD | [Redis Labs](https://redislabs.com) | [GitHub](https://github.com/RedisBloom/JReBloom) |
| rebloom | JavaScript | MIT | [Albert Team](https://cvitae.now.sh/) | [GitHub](https://github.com/albert-team/rebloom) |
| phpredis-bloom | PHP | MIT | [Rafa Campoy](https://github.com/averias) | [GitHub](https://github.com/averias/phpredis-bloom) |
## Documentation
Documentation and full command reference at [redisbloom.io](http://redisbloom.io).
## Mailing List / Forum
Got questions? Feel free to ask at the [RedisBloom mailing list](https://groups.google.com/forum/#!forum/redisbloom).
## License
Redis Source Available License Agreement - see [LICENSE](LICENSE)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
v2.2.1.tar.gz (66个子文件)
RedisBloom-2.2.1
changelog 211B
.circleci
codecov.yml 520B
config.yml 4KB
.clang-format 115B
Makefile 3KB
src
rm_topk.c 11KB
cf.c 4KB
cuckoo.h 2KB
.clang-format 116B
rm_cms.h 229B
cms.h 2KB
cuckoo.c 12KB
rm_cms.c 10KB
rm_topk.h 210B
version.h 486B
cms.c 3KB
study.c 3KB
rebloom.c 46KB
sb.c 8KB
cf.h 665B
topk.h 2KB
print_version.c 324B
topk.c 7KB
redismodule.h 18KB
sb.h 3KB
studybloomcms.c 3KB
LICENSE 6KB
tests
test-bf-error-rate.py 945B
benchmark.py 2KB
test-basic.c 8KB
Makefile 656B
test-cuckoo.c 6KB
init_test.py 4KB
test.h 5KB
test_cms.c 2KB
cuckoo.py 12KB
test-perf.c 697B
topk.py 7KB
test_topk.c 4KB
cf_compact.py 1001B
pytests.py 13KB
cms.py 8KB
docs
Bloom_Commands.md 9KB
_config.yml 26B
Configuration.md 1018B
Quick_Start.md 2KB
Cuckoo_Commands.md 8KB
CountMinSketch_Commands.md 3KB
CNAME 14B
contrib.md 189B
images
logo.svg 1KB
logo_small.png 10KB
favicon.png 7KB
index.md 3KB
TopK_Commands.md 4KB
Dockerfile 405B
ramp.yml 511B
.gitignore 140B
rmutil
util.c 8KB
util.h 6KB
README.md 3KB
mkdocs.yml 946B
contrib
bloom.h 5KB
murmurhash2.h 938B
MurmurHash2.c 4KB
bloom.c 7KB
共 66 条
- 1
资源评论
SimpleORBoy
- 粉丝: 1310
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功