#[info_command_handler]
Expand description
A procedural macro which registers this function as the custom
INFO
command handler. There might be more than one handler, each
adding new information to the context.
Example:
ⓘ
#[info_command_handler]
fn info_command_handler(
ctx: &InfoContext,
for_crash_report: bool) -> RedisResult
{
ctx.builder()
.add_section("test_info")
.field("test_field1", "test_value1")?
.field("test_field2", "test_value2")?
.build_section()?
.build_info()?;
Ok(())
}