openresty中lua+redis,关于lua查询redis方法的手册,我在用zrangebyscore时的分页,resty只支持字符串,有相关说明文档吗?
local aSetId = instance:zrangebyscore('jsonjjmatch_ware_dict_usually', iTimeLine, iTime)
这样能获取整个,但是我需要 limit取,我看redis.lua中只能传字符串,
local aSetId = instance:zrangebyscore('jsonjjmatch_ware_dict_usually', iTimeLine, iTime,{limit={0, 10}})
报错:2013/07/04 16:58:19 [error] 19015#0: *2160 lua handler aborted: runtime error: /usr/local/openresty/lualib/resty/redis.lua:196: bad argument #1 to 'len' (strin
g expected, got table), client: 192.168.20.115, server: localhost, request: "GET /get_ware_dict?waretype=1&id=33&wareid= HTTP/1.1", host: "localhost:85"