Redis布隆过滤器
Linux安装布隆过滤器遇到的坑
https://blog.csdn.net/qq_42816268/article/details/117332771
布隆过滤器
官网: https://redis.io/topics/modules-intro
博客:
https://segmentfault.com/a/1190000040021518?utm_source=sf-similar-article
https://segmentfault.com/a/1190000024566947
安装方式
https://github.com/RedisBloom/RedisBloom/issues/296
bloom算法类似一个hash set, 用来判断某个元素是否在某个集合中. bloom不需要存储元素的值, 而是对于每个元素用k个比特位来存储其标志, 用来判断元素是否在集合中.
编译后出现一个扩展库
启动布隆过滤器
ytf@LAPTOP-F97BKDMS:/opt/redis6/bin$ redis-server --loadmodule /opt/redis6/redisbloom.so
22447:C 03 Jun 2021 13:26:33.636 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
22447:C 03 Jun 2021 13:26:33.636 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=22447, just started
22447:C 03 Jun 2021 13:26:33.636 # Configuration loaded
22447:M 03 Jun 2021 13:26:33.637 * Increased maximum number of open files to 10032 (it was originally set to 1024).
22447:M 03 Jun 2021 13:26:33.637 * monotonic clock: POSIX clock_gettime
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 6.2.3 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 22447
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | https://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
22447:M 03 Jun 2021 13:26:33.638 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
22447:M 03 Jun 2021 13:26:33.638 # Server initialized
22447:M 03 Jun 2021 13:26:33.638 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
22447:M 03 Jun 2021 13:26:33.639 * Module 'bf' loaded from /opt/redis6/redisbloom.so
BF.ADD k1 abc
BF.EXISTS k1 ab
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
2019-06-03 MySQL事务锁问题-Lock wait timeout exceeded
2019-06-03 MySQL高效率更新操作