handling case when redis is down