plumbing: Factor out common Redis connection code.
plumbing: Fix comment.