Skip to content

Commit a491dcf

Browse files
authored
Update xadd.md for consumer group reference handling (#2430)
Clarified handling of consumer group references in trimming options and noted effect when no consumer groups are present.
1 parent 70b2925 commit a491dcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/commands/xadd.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ Prevents the creation of a new stream if the key does not exist. Available since
175175
<details open>
176176
<summary><code>KEEPREF | DELREF | ACKED</code></summary>
177177

178-
Specifies how to handle consumer group references when trimming. Available since Redis 8.2. If no option is specified, `KEEPREF` is used by default. Unlike the `XDELEX` and `XACKDEL` commands where one of these options is required, here they are optional to maintain backward compatibility:
178+
Specifies how to handle consumer group references when trimming. If there are no consummer groups, these arguments have no effect. Available since Redis 8.2.
179+
180+
If no option is specified, `KEEPREF` is used by default. Unlike the `XDELEX` and `XACKDEL` commands where one of these options is required, here they are optional to maintain backward compatibility:
179181

180182
- `KEEPREF` (default): When trimming, removes entries from the stream according to the specified strategy (`MAXLEN` or `MINID`), regardless of whether they are referenced by any consumer groups, but preserves existing references to these entries in all consumer groups' PEL (Pending Entries List).
181183
- `DELREF`: When trimming, removes entries from the stream according to the specified strategy and also removes all references to these entries from all consumer groups' PEL.

0 commit comments

Comments
 (0)