Make redis init in a non-static context