Skip to content

Commit d371c40

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Add full dsn example for redis transport
2 parents 0ac5b44 + b6df0e5 commit d371c40

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

messenger.rst

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ The Redis transport uses `streams`_ to queue messages.
878878
879879
# .env
880880
MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
881+
# Full DSN Example
882+
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1
881883
882884
To use the Redis transport, you will need the Redis PHP extension (^4.3) and
883885
a running Redis server (^5.0).
@@ -889,20 +891,22 @@ a running Redis server (^5.0).
889891
A number of options can be configured via the DSN or via the ``options`` key
890892
under the transport in ``messenger.yaml``:
891893

892-
================== =================================== =========================
893-
Option Description Default
894-
================== =================================== =========================
895-
stream The Redis stream name messages
896-
group The Redis consumer group name symfony
897-
consumer Consumer name used in Redis consumer
898-
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
894+
================== ===================================== =========================
895+
Option Description Default
896+
================== ===================================== =========================
897+
stream The Redis stream name messages
898+
group The Redis consumer group name symfony
899+
consumer Consumer name used in Redis consumer
900+
auto_setup Create the Redis group automatically? true
901+
auth The Redis password
902+
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
899903
in Redis (the
900904
``Redis::OPT_SERIALIZER`` option)
901-
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
905+
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
902906
the stream will be trimmed to. Set
903907
it to a large enough number to
904908
avoid losing pending messages
905-
================== =================================== =========================
909+
================== ===================================== =========================
906910

907911
.. versionadded:: 4.4
908912

0 commit comments

Comments
 (0)