Giter Club home page Giter Club logo

Comments (7)

zuiderkwast avatar zuiderkwast commented on September 25, 2024

Sounds good. There is no change to the API (e.g. rename config) right?

from hiredis-cluster.

andreasgerstmayr avatar andreasgerstmayr commented on September 25, 2024

Sounds good. There is no change to the API (e.g. rename config) right?

To be consistent, I think we should change the API as well, for example redisClusterSetOptionMaxRedirect and the redisClusterContext#max_redirect_count variable name. afaics all "max redirect" should be replaced with "max retries".

from hiredis-cluster.

zuiderkwast avatar zuiderkwast commented on September 25, 2024

Right... We're still in beta so I guess we can do changes like this, but we should be very clear about the change in release notes, etc. @bjosv WDYT?

from hiredis-cluster.

bjosv avatar bjosv commented on September 25, 2024

Yes, I have been wanting to change this as well, but since it was a breaking change it did not progress. The current state is legacy from hiredis-vip but its a bit confusing, so I think it would be worth it.

We should change for both async and sync api (pipeline & wait for rsp), but it should be an easy search for where max_redirect_count is used.

from hiredis-cluster.

zuiderkwast avatar zuiderkwast commented on September 25, 2024

We could define a macro #define max_redirect_count max_retry_count to make old code work during a transition period, e.g. we add it in 0.7 and we remove it again in 0.8. :-)

Since any code using this won't compile if it's not updated, I think it's safe to change it. It's not going to be silently ignored or so.

from hiredis-cluster.

andreasgerstmayr avatar andreasgerstmayr commented on September 25, 2024

We should change for both async and sync api (pipeline & wait for rsp), but it should be an easy search for where max_redirect_count is used.

Yep.

Since any code using this won't compile if it's not updated, I think it's safe to change it. It's not going to be silently ignored or so.

Yep, exactly - it won't break anything silently and is easy to fix by renaming the occurrences.

@bjosv: did you start working on that, or should I prepare a PR?

from hiredis-cluster.

bjosv avatar bjosv commented on September 25, 2024

@bjosv: did you start working on that, or should I prepare a PR?

No, I did not start any. It would be splendid if you like to prepare a PR for it.

from hiredis-cluster.

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.