@@ -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
870872a running Redis server (^5.0).
@@ -876,20 +878,22 @@ a running Redis server (^5.0).
876878A number of options can be configured via the DSN or via the ``options `` key
877879under 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