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

建议修改的api #5

Open
tomluck2 opened this issue Mar 17, 2020 · 1 comment
Open

建议修改的api #5

tomluck2 opened this issue Mar 17, 2020 · 1 comment

Comments

@tomluck2
Copy link

1:size方法需要修改下,如果key不存在,会抛null,最好返回0;
不然每次都得判断isExist().谢谢!
或者新增方法: sizeWithoutCheck()
2:zset增加range通过offset index获取,参考redis zset range. (默认的是score升序)
方便通过offset index,在不知道score范围时,获取range.
(现在只能自定义index设置到score,像list使用了。)

@frost373
Copy link
Owner

第一条已经计划修改,第二条不太明白具体的意思,是需要类似Redis的ZRANGEBYLEX功能么?LIMIT 0 3 LIMIT 3 3 这样?

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