redis2-nginx-module
redis2-nginx-module copied to clipboard
suggestion how to handle redis errors
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 This module is for the simplest use cases. If you need more control, then use of ngx_lua + lua-resty-redis is highly recommended.
thanks!