end
-- Store options
- if not result['timeout'] and not result['timeout'] == default_timeout then
+ if not result['timeout'] or result['timeout'] == default_timeout then
if options['timeout'] then
result['timeout'] = tonumber(options['timeout'])
else
local ret = false
if opts then
+ if opts.redis then
+ ret = try_load_redis_servers(opts.redis, result)
+
+ if ret then
+ return result
+ end
+ end
+
ret = try_load_redis_servers(opts, result)
- end
- if ret then
- return result
+ if ret then
+ return result
+ end
end
if no_fallback then return nil end