get redis config from env