Skip to content

[Messenger] Allow to configure the db index on Redis transport #12483

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
Oct 16, 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
Diff view
6 changes: 5 additions & 1 deletion messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,11 @@ 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&stream_max_entries=0
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1&stream_max_entries=0&dbindex=0

.. versionadded:: 4.4

The ``dbindex`` query parameter in Redis DSN was introduced in Symfony 4.4.

To use the Redis transport, you will need the Redis PHP extension (^4.3) and
a running Redis server (^5.0).
Expand Down