redix_stream v0.1.3 Redix.Stream
Documentation for Redix.Stream.
Link to this section Summary
Functions
Provides a supervisable specification for a consumer which consumes from the given topic or topics
Produces a new single message in a Redis stream
Link to this section Types
Link to this section Functions
Link to this function
consumer(redix, stream, callback, opts \\ [])
Provides a supervisable specification for a consumer which consumes from the given topic or topics.
Examples
iex> Redix.Stream.consumer(:redix, "topic", fn msg -> msg end)
iex> Redix.Stream.consumer(:redix, "topic", {Module, :function, [:arg1, :arg2]})
iex> Redix.Stream.consumer(:redix, "topic", {Module, :function, [:arg1, :arg2]}, tracker: "my_stream_tracker")