added redis as an option in the factory