valkey-io / valkey-bloom

Rust based Valkey Module which provides a BloomFilter data type / APIs
9 stars 8 forks source link

Support for INFO MODULES #12

Open KarthikSubbarao opened 2 weeks ago

KarthikSubbarao commented 2 weeks ago

Modules can support the INFO ALL / INFO MODULES command by implementing a callback function that writes into the INFO command response.

The bloom module will need to track information such as: Number of bloom objects, and total memory used (bytes) by all the bloom objects.

This information can be added as a result into a new INFO section.

Example: https://github.com/valkey-io/valkeymodule-rs/blob/main/examples/info_handler_builder.rs#L9