rubyredisbloom-filter

How to use bloomfilters with Ruby's Redis client


All of the ruby libraries that exist are doing a custom bloomfilter implementation. I want to use Redis's native bloomfilter functionality.

Is there a way to send manual commands to redis using the ruby client?


Solution

  • You can use it by calling those methods manually. For example:

    client.call("BF.ADD", bloom_filter_name, key)
    
    client.call("BF.EXISTS", bloom_filter_name, key)
    

    Note

    I would love to be wrong about the above caveats!