View Source EredisSub.Handler behaviour (eredis_sub v0.1.0)

Behaviour for handling messages received from Redis.

Summary

Callbacks

Handles a message received from Redis. Receives a binary message and a metadata that can be customized upon subscription. Return value is ignored.

Callbacks

Link to this callback

handle_pubsub_message(message, metadata)

View Source
@callback handle_pubsub_message(message :: binary(), metadata :: term()) :: term()

Handles a message received from Redis. Receives a binary message and a metadata that can be customized upon subscription. Return value is ignored.