redis2-nginx-module icon indicating copy to clipboard operation
redis2-nginx-module copied to clipboard

"MULTI & LRANG" BUG

Open liuguanglg opened this issue 9 years ago • 2 comments

When using MULTI AND LRANG together will cause error "Redis server returned invalid response near pos 18 in "

conf like this: " redis2_query MULTI; redis2_query LRANGE "dict" 0 0;
redis2_query EXEC; "

redis 127.0.0.1:6379> EXEC

    1. "2"
    2. "1" MAY BE" 1) 1)" tigger the error info.

liuguanglg avatar Mar 11 '15 09:03 liuguanglg

@liuguanglg Right, ngx_redis2 does not really support Redis transactions. You may consider using the lua-resty-redis library with the ngx_lua module instead.

Thank you for the report anyway :)

agentzh avatar Mar 11 '15 21:03 agentzh

Thanks a lot! lua-resty-redis is a good choice.

liuguanglg avatar Mar 12 '15 06:03 liuguanglg