Skip to content

Conversation

kerkerj
Copy link
Contributor

@kerkerj kerkerj commented Mar 16, 2018

Add go-redis library support, please take a look. :)

@kerkerj kerkerj force-pushed the feature/add-go-redis-support branch from 4e839fe to 0ddac0c Compare March 16, 2018 17:19
Copy link
Member

@brandur brandur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kerkerj — nice work!

This looks solid to me (minus the one comment below). There's quite a bit of duplication with the code in redigostore, but most of the strikes me as okay given that its somewhat inevitable and its implementation has been demonstrated to be quite stable.

We should probably put redisCASScript in a shared package so that it's not repeated like this, but I don't feel particularly strongly about it given that the naming for a the new package will be somewhat awkward, will force us to export it publicly, and that the script never changes anyway.

@metcalf Any feelings on this one? If not, I'll pull it in soon after the minor fix above is made.

)

// Demonstrates that how to initialize a RateLimiter with redis
// using go-redis libaray.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the example! Typo here: "library".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops 😅. Fixed! 😸

@kerkerj kerkerj force-pushed the feature/add-go-redis-support branch from 0ddac0c to 622f6fb Compare March 17, 2018 01:05
@brandur
Copy link
Member

brandur commented Mar 19, 2018

Thanks again! Pulling this in.

@brandur brandur merged commit 42b520d into throttled:master Mar 19, 2018
brandur added a commit that referenced this pull request Mar 19, 2018
It's good hygiene to maintain a changelog so that people can figure out
what changed. This one adds a basic version with an entry for the
upcoming 2.2.0 that will include #37.
@brandur brandur mentioned this pull request Mar 19, 2018
brandur added a commit that referenced this pull request Mar 19, 2018
It's good hygiene to maintain a changelog so that people can figure out
what changed. This one adds a basic version with an entry for the
upcoming 2.2.0 that will include #37.
brandur added a commit that referenced this pull request Mar 19, 2018
It's good hygiene to maintain a changelog so that people can figure out
what changed. This one adds a basic version with an entry for the
upcoming 2.2.0 that will include #37.
@brandur
Copy link
Member

brandur commented Mar 19, 2018

Released as v2.2.0.

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