Redis config fix memory leaks