@@ -1149,25 +1149,27 @@ a running Redis server (^5.0).
1149
1149
A number of options can be configured via the DSN or via the ``options `` key
1150
1150
under the transport in ``messenger.yaml ``:
1151
1151
1152
- ================== ===================================== =========================
1153
- Option Description Default
1154
- ================== ===================================== =========================
1155
- stream The Redis stream name messages
1156
- group The Redis consumer group name symfony
1157
- consumer Consumer name used in Redis consumer
1158
- auto_setup Create the Redis group automatically? true
1159
- auth The Redis password
1160
- delete_after_ack If ``true ``, messages are deleted false
1161
- automatically after processing them
1162
- serializer How to serialize the final payload ``Redis::SERIALIZER_PHP ``
1163
- in Redis (the
1164
- ``Redis::OPT_SERIALIZER `` option)
1165
- stream_max_entries The maximum number of entries which ``0 `` (which means "no trimming")
1166
- the stream will be trimmed to. Set
1167
- it to a large enough number to
1168
- avoid losing pending messages
1169
- tls Enable TLS support for the connection false
1170
- ================== ===================================== =========================
1152
+ =================== ===================================== =========================
1153
+ Option Description Default
1154
+ =================== ===================================== =========================
1155
+ stream The Redis stream name messages
1156
+ group The Redis consumer group name symfony
1157
+ consumer Consumer name used in Redis consumer
1158
+ auto_setup Create the Redis group automatically? true
1159
+ auth The Redis password
1160
+ delete_after_ack If ``true ``, messages are deleted false
1161
+ automatically after processing them
1162
+ delete_after_reject If ``true ``, messages are deleted true
1163
+ automatically if they are rejected
1164
+ serializer How to serialize the final payload ``Redis::SERIALIZER_PHP ``
1165
+ in Redis (the
1166
+ ``Redis::OPT_SERIALIZER `` option)
1167
+ stream_max_entries The maximum number of entries which ``0 `` (which means "no trimming")
1168
+ the stream will be trimmed to. Set
1169
+ it to a large enough number to
1170
+ avoid losing pending messages
1171
+ tls Enable TLS support for the connection false
1172
+ =================== ===================================== =========================
1171
1173
1172
1174
.. tip ::
1173
1175
@@ -1180,6 +1182,10 @@ tls Enable TLS support for the connection false
1180
1182
1181
1183
The ``delete_after_ack `` option was introduced in Symfony 5.1.
1182
1184
1185
+ .. versionadded :: 5.2
1186
+
1187
+ The ``delete_after_reject `` option was introduced in Symfony 5.2.
1188
+
1183
1189
In Memory Transport
1184
1190
~~~~~~~~~~~~~~~~~~~
1185
1191
0 commit comments