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

Missing stream commands #1153

Open
2 of 14 tasks
urkle opened this issue Apr 18, 2024 · 4 comments
Open
2 of 14 tasks

Missing stream commands #1153

urkle opened this issue Apr 18, 2024 · 4 comments

Comments

@urkle
Copy link
Contributor

urkle commented Apr 18, 2024

I am implementing a service that utilizes the streams in redis and am running into a number of items that are missing in redis-rs.

@nihohit
Copy link
Contributor

nihohit commented Apr 18, 2024 via email

@urkle
Copy link
Contributor Author

urkle commented Apr 18, 2024

@nihohit I'm working on a local trait to get the ones I need implemented so I can get a PR together.

A few questions

  1. should the options classes like StreamClaimOptions be #[non_exhaustive] (or not necessary since the internals are private). As I'll need to extend some of the like the StreamClaimOptions
  2. can I create _options versions of some of these to make more concise variant? (e.g. xadd_options)

@nihohit
Copy link
Contributor

nihohit commented Apr 19, 2024

  1. StreamClaimOptions has only private fields, so I'm not sure how marking it as non_exhaustive would affect its behavior. AFAIK this attribute is only relevant for structs with (exclusively?) public fields.
  2. sure, and since the fields are private, you can have the more verbose versions take the more concise versions as fields without breaking backwards compatibility.

@nihohit
Copy link
Contributor

nihohit commented Apr 19, 2024

also, I'll save you time on common comments we give to PRs -

  1. please open separate PRs for each command, or at least for each set of commands. If you'll open 1 huge PR, I'll ask to break it down.
  2. please add comprehensive sync & async tests for each command.

Thanks for the will to contribute :)

jaymell pushed a commit that referenced this issue May 1, 2024
This adds a new command for the redis XGROUP CREATECONSUMER.

This is one of the missing steam commands described in #1153
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

No branches or pull requests

2 participants