ejfinneran / ratelimit

A Redis-backed rate limiter written in Ruby
MIT License
257 stars 55 forks source link

Working with fractions of seconds #19

Open btc opened 8 years ago

btc commented 8 years ago

Thanks for the great software. Question:

Does this library support fractions of seconds? I am interested in the following:

r.exceeded?(foo, threshold: 1, interval: 0.1)
ejfinneran commented 8 years ago

It's never been tested with fractions of seconds that I'm aware of. Theoretically, you could alter it to support it though.