8000 minor #11874 Add full dsn example for redis transport (alexander-schr… · symfony/symfony-docs@2e3209b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e3209b

Browse files
committed
minor #11874 Add full dsn example for redis transport (alexander-schranz)
This PR was squashed before being merged into the 4.3 branch (closes #11874). Discussion ---------- Add full dsn example for redis transport Currently its not documented how to pass the password or other options. Fix for password is provided in: symfony/symfony#32334 Commits ------- 949b6bb Add full dsn example for redis transport
2 parents 5673b1d + 949b6bb commit 2e3209b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

messenger.rst

Lines changed: 4 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,6 +897,8 @@ 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)

0 commit comments

Comments
 (0)
0