Giter Site home page Giter Site logo

Missing stream commands about redis-rs HOT 4 OPEN

urkle avatar urkle commented on August 24, 2024
Missing stream commands

from redis-rs.

Comments (4)

nihohit avatar nihohit commented on August 24, 2024

from redis-rs.

urkle avatar urkle commented on August 24, 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)

from redis-rs.

nihohit avatar nihohit commented on August 24, 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.

from redis-rs.

nihohit avatar nihohit commented on August 24, 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 :)

from redis-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.