#[redis_component]
Expand description
The entrypoint to a Spin Redis component.
The component runs in response to messages on a Redis queue.
§Examples
A handler that logs the content of each message it receives.
ⓘ
#[redis_component]
fn on_message(message: Bytes) -> Result<()> {
println!("{}", from_utf8(&message)?);
Ok(())
}
See https://spinframework.dev/redis-trigger for more information.