Closed heynemann closed 10 years ago
Sorry about the failed build. Hopefully everything is ok now!
@bbangert any chance this gets merged and a release done? I'm really in need of this code for my app. If you need anything else to be done, please let me know.
Looks great, merging and releasing! :)
thank you very much!
I had to limit running parallel requests and thought of building my own lib. Thankfully I found retools and thought of contributing to it, instead.
The limiter class allows you to lock a specific number of items for a given operation. For instance:
The app can then do something else or wait until it can acquire a limit. I hope you do consider this a generic enough construct that it should be in retools.
I tried hard to comply to the code notation and docs already in the project. If I missed something, please let me know and I'll gladly update the pull request.
The test covers 100% of the code and with both unit (mock redis) and functional (real redis) tests.