An employee was removing a valve cap on a compressor at a compressor station. Trapped pressure caused the cap to fly off and strike the employee on the right side of his face. Glass from his safety glasses was embedded in his right eye, necessitating surgery to remove the eye.