We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4f3a2 commit af76ed4Copy full SHA for af76ed4
index.js
@@ -70,6 +70,7 @@ Limiter.prototype.get = function (fn) {
70
.zadd([key, now, now])
71
.zrange([key, 0, 0])
72
.zrange([key, -max, -max])
73
+ .zremrangebyrank([key, 0, -(max + 1)])
74
.pexpire([key, duration])
75
.exec(function (err, res) {
76
if (err) return fn(err);
0 commit comments