Made the config dynamic for the redis