Skip to content

Commit a5eb9ed

Browse files
committed
Documented redis transport new stream_max_entries option
1 parent 32ba185 commit a5eb9ed

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

messenger.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,16 +876,21 @@ a running Redis server (^5.0).
876876
A number of options can be configured via the DSN or via the ``options`` key
877877
under the transport in ``messenger.yaml``:
878878

879-
================== =================================== =======
879+
================== =================================== =========================
880880
Option Description Default
881-
================== =================================== =======
881+
================== =================================== =========================
882882
stream The Redis stream name messages
883883
group The Redis consumer group name symfony
884884
consumer Consumer name used in Redis consumer
885885
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
886886
in Redis (the
887887
``Redis::OPT_SERIALIZER`` option)
888-
================== =================================== =======
888+
stream_max_entries The maximum number of entries which 0 (= no trimming)
889+
the stream will be trimmed to. Be
890+
careful with the configured number
891+
because it might cause a loss of
892+
pending messages
893+
================== =================================== =========================
889894

890895
In Memory Transport
891896
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)