Skip to content

Commit d3b9cb7

Browse files
committed
Merge branch '5.1'
* 5.1: [Messneger] documented the delete_after_ack option
2 parents da7c12b + 490f714 commit d3b9cb7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

messenger.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,8 @@ group The Redis consumer group name symfony
11571157
consumer Consumer name used in Redis consumer
11581158
auto_setup Create the Redis group automatically? true
11591159
auth The Redis password
1160+
delete_after_ack If ``true``, messages are deleted false
1161+
automatically after processing them
11601162
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
11611163
in Redis (the
11621164
``Redis::OPT_SERIALIZER`` option)
@@ -1167,6 +1169,17 @@ stream_max_entries The maximum number of entries which ``0`` (which means "n
11671169
tls Enable TLS support for the connection false
11681170
================== ===================================== =========================
11691171

1172+
.. tip::
1173+
1174+
Set ``delete_after_ack`` to ``true`` (if you use a single group) or define
1175+
``stream_max_entries`` (if you can estimate how many max entries is acceptable
1176+
in your case) to avoid memory leaks. Otherwise, all messages will remain
1177+
forever in Redis.
1178+
1179+
.. versionadded:: 5.1
1180+
1181+
The ``delete_after_ack`` option was introduced in Symfony 5.1.
1182+
11701183
In Memory Transport
11711184
~~~~~~~~~~~~~~~~~~~
11721185

0 commit comments

Comments
 (0)