Skip to content

Commit af76ed4

Browse files
committed
Add zremrangebyrank
1 parent 2a4f3a2 commit af76ed4

File tree

2 files changed

+2178
-0
lines changed

2 files changed

+2178
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Limiter.prototype.get = function (fn) {
7070
.zadd([key, now, now])
7171
.zrange([key, 0, 0])
7272
.zrange([key, -max, -max])
73+
.zremrangebyrank([key, 0, -(max + 1)])
7374
.pexpire([key, duration])
7475
.exec(function (err, res) {
7576
if (err) return fn(err);

0 commit comments

Comments
 (0)