Skip to content

Commit b6ccd66

Browse files
committed
[Messenger] Allow to configure the db index on Redis transport
1 parent e679a37 commit b6ccd66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

messenger.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,11 @@ The Redis transport uses `streams`_ to queue messages.
896896
# .env
897897
MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
898898
# Full DSN Example
899-
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1&stream_max_entries=0
899+
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1&stream_max_entries=0&dbindex=0
900+
901+
.. versionadded:: 4.4
902+
903+
The ``dbindex`` query parameter in Redis DSN was introduced in Symfony 4.4.
900904

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

0 commit comments

Comments
 (0)