Closed barmstrong closed 11 years ago
Yeah that would be useful. Shouldn't be too tricky. The add
method would just need to changed to allow it to increment by something other than 1.
If you want to submit a pull request with some tests I'd be happy to merge it in.
+1.
My use case is that I'm doing batched API calls and would like to increase the counter accordingly in one go.
The use case I'm thinking of is max amount of money a user can send in a day. I want to rate limit the total amount sent, not the number of transactions.
So if I wanted to limit it to $500 per day, they could either send 1 tx for $500, or 500 for $1.
Was thinking something like