redis config
refactor