Skip to content

Commit b7684bd

Browse files
Add full dsn example for redis transport
1 parent 9a873fb commit b7684bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

Lines changed: 5 additions & 0 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).
@@ -895,11 +897,14 @@ under the transport in ``messenger.yaml``:
895897
stream The Redis stream name messages
896898
group The Redis consumer group name symfony
897899
consumer Consumer name used in Redis consumer
900+
auto_setup Will auto create the Redis group. true
901+
auth The password used for Redis
898902
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
899903
in Redis (the
900904
``Redis::OPT_SERIALIZER`` option)
901905
================== =================================== =======
902906

907+
903908
In Memory Transport
904909
~~~~~~~~~~~~~~~~~~~
905910

0 commit comments

Comments
 (0)