Yichun Zhang
Yichun Zhang
@signals2 Please avoid the use of the "if" directive. See http://wiki.nginx.org/IfIsEvil Better use [ngx_lua](https://github.com/openresty/lua-nginx-module#readme) and [lua-resty-redis](https://github.com/openresty/lua-resty-redis#readme) for such things.
@thibaultcha All look good to me.
Try lua-resty-redis library instead.
Which version are you using? Better always use the resty script shipped with the same Openresty release ( including our prebuilt binary packages).
@hwongcom It should. And also for any future redis commands. Because the redis 2.0 wire protocol is also forward-compatible.
@hwongcom Just read the official redis command documentation: http://redis.io/commands/HSET The syntax should be the same, for example, ``` nginx redis2_query hset myhash field1 "Hello"; ```
@maurorappa This module is for the simplest use cases. If you need more control, then use of ngx_lua + lua-resty-redis is highly recommended.
@jonnor I believe the Description section of this module's official manual answers your questions already: https://github.com/openresty/redis2-nginx-module#description
lua-redis-parser does not support recursive multi-bulk replies yet. You're recommended to use lua-resty-redis for it. BTW, you can also use lua-resty-redis for multiple node sharding. Just calculate the target from...
Well, just try connecting to the redis server via ngx_lua's TCP/stream cosocket API: http://wiki.nginx.org/HttpLuaModule#ngx.socket.tcp Basically, you just need to connect to the server and check the return values (if it...