Refactored IoC to be able to register and configure Redis when the container is initialized