Batched Redis publisher (kombu.transport.redis.PublishBatch).
Coalesces routing lookups (SMEMBERS _kombu.binding.<exchange>) and pipelines
all LPUSH, PUBLISH, and PEXPIRE commands in a single round-trip.
Summary
Functions
Discards all pending messages in the batch.
Enqueues a prepared message map with exchange and routing_key into the batch.
Flushes all queued messages using channel_state (a %Kombu.Transport.Redis.Channel{} struct).
Returns {:ok, new_batch}.
Returns the count of queued messages in the batch.
Types
Functions
Discards all pending messages in the batch.
Enqueues a prepared message map with exchange and routing_key into the batch.
Flushes all queued messages using channel_state (a %Kombu.Transport.Redis.Channel{} struct).
Returns {:ok, new_batch}.
@spec size(t()) :: non_neg_integer()
Returns the count of queued messages in the batch.