rate-limit icon indicating copy to clipboard operation
rate-limit copied to clipboard

Method to have custom time range

Open rishabhdave opened this issue 3 years ago • 1 comments

Hi,

First of all a very nice and compact library. I would like to know if there's any option/method where I can rate limit for custom time. For example every 5 minutes, every 25 minutes etc. It would be good to have that option.

Thanks

rishabhdave avatar Mar 29 '21 06:03 rishabhdave

Thanks!

There is a custom rate limit strategy, take a look at: https://github.com/nikolaposa/rate-limit/blob/master/src/Rate.php#L46. I might document that in README.

nikolaposa avatar Mar 29 '21 07:03 nikolaposa