init switch custom redis connection reuse pool