Skip to content

Add support for Bloom Filter commands in miniredis #397

Open
@dhruv-raithatha

Description

@dhruv-raithatha

Add support for Bloom Filter commands in miniredis

Description

First of all, thank you for maintaining miniredis! It's a fantastic tool for testing Redis interactions in Go projects.

I would like to request support for Bloom Filter commands, which are part of Redis' probabilistic data structures module (RedisBloom). These commands are particularly useful for scenarios involving approximate membership checks and are widely utilized in modern applications.

Commands Requested

Here are some essential Bloom Filter commands that would be beneficial to implement:

  • BF.RESERVE
  • BF.ADD
  • BF.MADD
  • BF.EXISTS
  • BF.MEXISTS
  • BF.SCANDUMP
  • BF.LOADCHUNK

Use Case

Including support for these commands would allow developers to test applications that rely on Bloom Filters without needing to spin up a full Redis instance. This would align with the primary purpose of miniredis as a lightweight Redis server for unit tests in Go.

Additional Context

If this feature aligns with the vision of the project, I would be happy to contribute or assist with implementation. Please let me know if there are any specific guidelines or constraints when adding support for new commands.

Thank you for considering this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions