@@ -865,6 +865,8 @@ The Redis transport uses `streams`_ to queue messages.
865
865
866
866
# .env
867
867
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
868
870
869
871
To use the Redis transport, you will need the Redis PHP extension (^4.3) and
870
872
a running Redis server (^5.0).
@@ -876,20 +878,22 @@ a running Redis server (^5.0).
876
878
A number of options can be configured via the DSN or via the ``options `` key
877
879
under the transport in ``messenger.yaml ``:
878
880
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
952E
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 ``
886
890
in Redis (the
887
891
``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")
889
893
the stream will be trimmed to. Set
890
894
it to a large enough number to
891
895
avoid losing pending messages
892
- ================== =================================== =========================
896
+ ================== ===================================== =========================
893
897
894
898
.. versionadded :: 4.4
895
899
0 commit comments