Skip to content

Commit 4983d8e

Browse files
committed
minor #12483 [Messenger] Allow to configure the db index on Redis transport (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Messenger] Allow to configure the db index on Redis transport Fixes #12436. Commits ------- b6ccd66 [Messenger] Allow to configure the db index on Redis transport
2 parents d23e5ee + b6ccd66 commit 4983d8e

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)