Skip to content

Commit 82212b5

Browse files
committed
Merge branch '4.4'
* 4.4: Add full dsn example for redis transport
2 parents 33c1007 + d371c40 commit 82212b5

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
@@ -865,6 +865,8 @@ The Redis transport uses `streams`_ to queue messages.
865865
866866
# .env
867867
MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
868+
# Full DSN Example
869+
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1
868870
869871
To use the Redis transport, you will need the Redis PHP extension (^4.3) and
870872
a running Redis server (^5.0).
@@ -876,20 +878,22 @@ a running Redis server (^5.0).
876878
A number of options can be configured via the DSN or via the ``options`` key
877879
under the transport in ``messenger.yaml``:
878880

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``
881+
================== ===================================== =========================
882+
Option Description Default
883+
================== ===================================== =========================
884+
stream The Redis stream name messages
885+
group The Redis consumer group name symfony
886+
consumer Consumer name used in Redis consumer
887+
auto_setup Create the Redis group automatically? true
888+
auth The Redis password
889+
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
886890
in Redis (the
887891
``Redis::OPT_SERIALIZER`` option)
888-
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
892+
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
889893
the stream will be trimmed to. Set
890894
it to a large enough number to
891895
avoid losing pending messages
892-
================== =================================== =========================
896+
================== ===================================== =========================
893897

894898
.. versionadded:: 4.4
895899

0 commit comments

Comments
 (0)