The wait was worth it in so many ways.

After spending a baseball lifetime in the minors, Scott Rice leads the Mets in appearances this year with 10. The lefty’s ERA is 1.00 and yesterday he got out of the biggest jam of his major league life when Jayson Werth grounded into an eighth-inning double play on a 3-0 sinker with no outs and runners on first and second following a single and a walk.

Rice then struck out Bryce Harper with a split-fingered fastball as the Mets came away with the 2-0 win at Citi Field and a series victory over the Nationals. The Mets had lost seven straight series to the Nationals.

Here is the lesson from Rice’s 14-year winding journey to the majors:

“If there is something in life you want to do, make sure you do it,’’ Rice said. “This is what I always wanted to do.’’

The minor league stops include places like Ottawa, the Atlantic League Long Island Ducks, Albuquerque and Aberdeen. He was the 44th player selected in the 1999 draft, taken by the Orioles, and didn’t make it to the majors until this year. He’s also been with the Rangers, Dodgers, Padres, Rockies, Cubs, back to the Dodgers and now the Mets.

He’s been a life-saver for manager Terry Collins.

“It’s a great story,’’ Collins said. “When I told him he made the club he said, ‘It’s been worth the wait.’ ’’