Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zremrangebyrank #46

Closed
peng-huang-ch opened this issue Feb 28, 2019 · 3 comments
Closed

add zremrangebyrank #46

peng-huang-ch opened this issue Feb 28, 2019 · 3 comments

Comments

@peng-huang-ch
Copy link
Contributor

add zremrangebyrank after here to remove some useless data information.

db.multi()
    .zremrangebyscore([key, 0, start])
    .zcard([key])
    .zadd([key, now, now])
    .zrange([key, 0, 0])
    .zrange([key, -max, -max])
    //.zremrangebyrank([key, 0, -(max + 1)])
    .pexpire([key, duration])
    .exec(function (err, res)
@noamshemesh
Copy link
Collaborator

can you please open a PR with relevant tests?

@peng-huang-ch
Copy link
Contributor Author

Yes, I have created a PR and passed tests, please review the change.

@noamshemesh
Copy link
Collaborator

merged #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants