diff --git a/content/commands/xtrim.md b/content/commands/xtrim.md index 4c030032f3..455b51d913 100644 --- a/content/commands/xtrim.md +++ b/content/commands/xtrim.md @@ -152,7 +152,9 @@ Limits the number of entries to examine during trimming. Available since Redis 6
KEEPREF | DELREF | ACKED -Specifies how to handle consumer group references when trimming. If no option is specified, `KEEPREF` is used by default: +Specifies how to handle consumer group references when trimming. If there are no consumer groups, these arguments have no effect. 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: - `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). - `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.