服务器系统是Centos的系统 这里写下如何给redis 安装布隆过滤器
wget https://github.com/RedisLabsModules/rebloom/archive/v1.1.1.tar.gz
解压 tar zxvf v1.1.1.tar.gz
cd rebloom-1.1.1
make
执行完成后 看rebloom 目录结构 多了一个 rebloom.so 的文件

然后需要在 在redis配置文件(redis.conf)中加入该模块即可
loadmodule /usr/local/web/redis/RedisBloom-1.1.1/rebloom.so

重启 测试
bf.add test 1
bf.add test 2
bf.exists test 1
bf.exists test 222

本文详细介绍了在Centos系统上为Redis安装布隆过滤器的过程,包括下载、解压、编译和配置等步骤,并提供了具体的命令行指令,最后验证了布隆过滤器的功能。
6307

被折叠的 条评论
为什么被折叠?



