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

suggestion how to handle redis errors

Open maurorappa opened this issue 9 years ago • 2 comments

I would like to know your opinion how to handle a redis error, in my case a Redis Evalsha issue due to malformed parameter

-ERR Error running script (call to f_ea25fc9ab8e5cb16221ba7d56aabcd764e112abb): @user_script:7: user_script:7: attempt to compare number with string

is the only way the Redis response parser? is it not overkill? maybe a flag in redis_pass to handle an error?

Thanks!

maurorappa avatar Nov 10 '15 16:11 maurorappa

@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.

agentzh avatar Nov 11 '15 05:11 agentzh

thanks!

maurorappa avatar Nov 11 '15 09:11 maurorappa