File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1157,6 +1157,8 @@ group The Redis consumer group name symfony
11571157consumer Consumer name used in Redis consumer
11581158auto_setup Create the Redis group automatically? true
11591159auth The Redis password
1160+ delete_after_ack If ``true ``, messages are deleted false
1161+ automatically after processing them
11601162serializer 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
11671169tls 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+
11701183In Memory Transport
11711184~~~~~~~~~~~~~~~~~~~
11721185
You can’t perform that action at this time.
0 commit comments