Sliding window counter using Redis
It uses ZSET data type of Redis to count for every key. Multiple increments in a millisecond is supported.
There are 2 implementations for Node.js and Java.
Originally forked from https://github.com/chriskinsman/redis-ratelimit