From 49d60ceca538ed5d81a00491c4ef19b3744c6e72 Mon Sep 17 00:00:00 2001 From: Lior Kogan Date: Fri, 21 Nov 2025 13:55:27 +0200 Subject: [PATCH 1/2] Update xtrim.md with consumer group reference details Clarify handling of consumer group references when trimming in Redis. Added details about the default option and behavior of KEEPREF, DELREF, and ACKED. --- content/commands/xtrim.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/commands/xtrim.md b/content/commands/xtrim.md index 4c030032f3..aba20dba8c 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 consummer 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. From cd84686a6b54dd6ed3146c04fbd06fee18ee15bd Mon Sep 17 00:00:00 2001 From: David Dougherty Date: Fri, 21 Nov 2025 06:24:51 -0800 Subject: [PATCH 2/2] Update content/commands/xtrim.md --- content/commands/xtrim.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/commands/xtrim.md b/content/commands/xtrim.md index aba20dba8c..455b51d913 100644 --- a/content/commands/xtrim.md +++ b/content/commands/xtrim.md @@ -152,7 +152,7 @@ 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 there are no consummer groups, these arguments have no effect. Available since Redis 8.2. +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: