Hello!
On Sun, Sep 1, 2013 at 8:13 PM, qq3056 wrote:
> then GET /pipelined will yield two successive raw Redis responses
>
> +OK
> $5
> world
>
> 输出的$5如何去掉?
>
貌似你没把那篇文档看全。在这里引用一下相关的原文:
“This module returns the raw TCP response from the Redis server. It's
recommended to use my LuaRedisParser (written in pure C) to parse
these responses into lua data structure when combined with
HttpLuaModule.
When used in conjunction with HttpLuaModule, it is recommended to use
the lua-resty-redis library instead of this module though, because the
former is much more flexible and memory-efficient.”
更多细节见 http://wiki.nginx.org/HttpRedis2Module#Description
Regards,
-agentzh