8000 Add full dsn example for redis transport by alexander-schranz · Pull Request #11874 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Add full dsn example for redis transport #11874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
E05B
Diff view
4 changes: 4 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ The Redis transport uses `streams`_ to queue messages.

# .env
MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
# Full DSN Example
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1

To use the Redis transport, you will need the Redis PHP extension (^4.3) and
a running Redis server (^5.0).
Expand All @@ -895,6 +897,8 @@ under the transport in ``messenger.yaml``:
stream The Redis stream name messages
group The Redis consumer group name symfony
consumer Consumer name used in Redis consumer
auto_setup Will auto create the Redis group. true
auth The password used for Redis
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
in Redis (the
``Redis::OPT_SERIALIZER`` option)
Expand Down
0