configured redis to be optional