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