Skip to content

Add xtrim with minid and new 8.2 stream features #2912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 21, 2025
Merged

Add xtrim with minid and new 8.2 stream features #2912

merged 14 commits into from
Jul 21, 2025

Conversation

mgravell
Copy link
Collaborator

@mgravell mgravell commented Jul 18, 2025

Adds minid support from #2842 (adopts PR)

  • xtrim minid

Adds new 8.2 stream features:

  • xtrim minid with del mode
  • xtrim length with del mode
  • xackdel
  • xdelex
  • xadd with del mode

Also changes int? length-related usage in stream APIs to long? in the new overloads (only). Binary and compile compat retained throughout; some args made non-optional to push callers to new API when possible.

High level (beyond minid) is that a bunch of stream methods (or new methods) gain [KEEPREF|DELREF|ACKED] support, where KEEPREF is the old approach and assumed by default when not mandatory. For more context, see StreamTrimMode enum comments.

kijanawoodard and others added 5 commits July 18, 2025 10:20
clarify doc comment

i now think the XTRIM documentation is saying that an entry at exactly MINID is kept.
https://redis.io/docs/latest/commands/xtrim/
forgot to update the length check.
implement useApproximateMaxLength and limit as per docs
@mgravell mgravell changed the title Minid Add xack with minid and new 8.2 stream features Jul 18, 2025
@mgravell mgravell mentioned this pull request Jul 18, 2025
@mgravell mgravell changed the title Add xack with minid and new 8.2 stream features Add xtrim with minid and new 8.2 stream features Jul 18, 2025
@mgravell mgravell merged commit 6b02ba8 into main Jul 21, 2025
8 checks passed
@mgravell mgravell deleted the minid branch July 21, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants