zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Google glass GDK
    Google glass GDK
    Google glass GDK
    趣味开发
    Android
    Google glass GDK
    Google glass GDK
    Google glass GDK
    Android
    Google glass GDK
  • 原文地址:https://www.cnblogs.com/smileblogs/p/14844610.html
Copyright © 2011-2022 走看看