Refactor/redis config