Skip to content
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

Support MINID in XADD #318

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Support MINID in XADD #318

merged 1 commit into from
Apr 4, 2023

Conversation

nathan-cormier
Copy link
Contributor

According to https://redis.io/commands/xadd
XADD should support MINID (in addition to MAXLEN) as another means of trimming old entries from the stream.

First added in Redis 6.2.0 https://raw.githubusercontent.com/redis/redis/6.2/00-RELEASENOTES

@alicebob
Copy link
Owner

Hi, thanks for the PR! Looks good on first glance, but I'll have a proper look another day. Would it be possible to add some tests in the ./integration/ dir? If not also no problem.

@nathan-cormier
Copy link
Contributor Author

Hi @alicebob - definitely I can add some integration tests. I'll get started on those soon.
Also it looks like the Go 1.14 tests fail because UnixMilli didn't exist on that version, so I can refactor that out and calculate milliseconds.

@alicebob
Copy link
Owner

alicebob commented Mar 24, 2023 via email

@nathan-cormier
Copy link
Contributor Author

Hi @alicebob I added some integration tests, let me know how it looks!

@alicebob
Copy link
Owner

alicebob commented Apr 4, 2023

thanks for the fix! Code looks great, if you can squash it to a single commit I'll merge it.

According to https://redis.io/commands/xadd
XADD should support MINID (in addition to MAXLEN) as another means
of trimming old entries from the stream.

First added in Redis 6.2.0 https://raw.githubusercontent.com/redis/redis/6.2/00-RELEASENOTES
@nathan-cormier
Copy link
Contributor Author

nathan-cormier commented Apr 4, 2023

You're welcome @alicebob ! Just squashed the commits.

@alicebob alicebob merged commit 9077c86 into alicebob:master Apr 4, 2023
@alicebob
Copy link
Owner

alicebob commented Apr 4, 2023

great, thanks! I'll review the other open PR soon and then make a new version.

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.

2 participants