added redis availability check