redback
redback copied to clipboard
A high-level Redis library
Results
2
redback issues
Sort by
recently updated
recently updated
newest added
There's cases in which an "expired" bucket may get re-used before it was reset to 0. This will happen for any client that didn't increment the hitcount for the duration...
code ``` javascript var redback = require('redback').createClient(); var ratelimit = redback.createRateLimit('requests', { bucket_span: 6, bucket_interval: 1, subject_expiry: 12 }); // if request 1 times per 3 seconds setInterval(function () {...