@@ -878,6 +878,8 @@ The Redis transport uses `streams`_ to queue messages.
878
878
879
879
# .env
880
880
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
881
883
882
884
To use the Redis transport, you will need the Redis PHP extension (^4.3) and
883
885
a running Redis server (^5.0).
@@ -889,20 +891,22 @@ a running Redis server (^5.0).
889
891
A number of options can be configured via the DSN or via the ``options `` key
890
892
under the transport in ``messenger.yaml ``:
891
893
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 ``
899
903
in Redis (the
900
904
``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")
902
906
the stream will be trimmed to. Set
903
907
it to a large enough number to
904
908
avoid losing pending messages
905
- ================== =================================== =========================
909
+ ================== ===================================== =========================
906
910
907
911
.. versionadded :: 4.4
908
912
0 commit comments