Skip to content

Commit 6ddfadf

Browse files
committed
Merge branch '4.4'
* 4.4: Documented redis transport new stream_max_entries option
2 parents 32ba185 + 13b687b commit 6ddfadf

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

messenger.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -876,16 +876,24 @@ 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-
================== =================================== =======
880-
Option Description Default
881-
================== =================================== =======
882-
stream The Redis stream name messages
883-
group The Redis consumer group name symfony
884-
consumer Consumer name used in Redis consumer
885-
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
879+
================== =================================== =========================
880+
Option Description Default
881+
================== =================================== =========================
882+
stream The Redis stream name messages
883+
group The Redis consumer group name symfony
884+
consumer Consumer name used in Redis consumer
885+
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`` (which means "no trimming")
889+
the stream will be trimmed to. Set
890+
it to a large enough number to
891+
avoid losing pending messages
892+
================== =================================== =========================
893+
894+
.. versionadded:: 4.4
895+
896+
The ``stream_max_entries`` option was introduced in Symfony 4.4.
889897

890898
In Memory Transport
891899
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)