Skip to content

Commit 4b0cf40

Browse files
committed
Merge branch '4.4'
* 4.4: [Messenger] Allow to configure the db index on Redis transport
2 parents ef2cc81 + 4983d8e commit 4b0cf40

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
@@ -883,7 +883,11 @@ The Redis transport uses `streams`_ to queue messages.
883883
# .env
884884
MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
885885
# Full DSN Example
886-
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1&stream_max_entries=0
886+
MESSENGER_TRANSPORT_DSN=redis://password@localhost:6379/messages/symfony/consumer?auto_setup=true&serializer=1&stream_max_entries=0&dbindex=0
887+
888+
.. versionadded:: 4.4
889+
890+
The ``dbindex`` query parameter in Redis DSN was introduced in Symfony 4.4.
887891

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

0 commit comments

Comments
 (0)