koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

Include a timeout for Redis operations #43

Closed edevil closed 11 months ago

edevil commented 6 years ago

In order to deal with unresponsive Redis servers we need to be able to specify a timeout value for Redis operations.

One way to do this is using the timeout method of promises as shown here: https://github.com/luin/ioredis/issues/61#issuecomment-222059161

titanism commented 11 months ago

PR welcome