I have a really great news!
rate-limiter-flexible
supports ioredis
v4+ and redis
v4+ now.
We have been waiting for this moment for years.
Thanks to @roggervalf. And one big thank you from me personally
Since this is major release, there are
BREAKING CHANGES:
rate-limiter-flexible
works withioredis
package of any version (tested versions 2, 3, 4 and 5) by default now. If you want it to work with the latestredis
package, you should set useRedisPackage flag. If you useredis
of version 3 or lower, you should set useRedis3AndLowerPackage. We kept it flexible for you.- deprecated options started with lowercased
inmemory
prefix are removed. You can use inMemoryBlockOnConsumed and
inMemoryBlockDuration instead. - deprecated
redis
option forRateLimiterRedis
was removed. (Most likely you never heard about it, since it was deprecated years ago). You should usestoreClient
option instead.