The St. Louis Cardinals have agreed to a one-year deal with Adam Wainwright.

The right-hander will be entering his 15th Major League season. He will tie Bob Forsch for third among pitchers in terms of longevity with the team.

"Adam represents everything we think of when asked to describe a winning player, and a winning teammate," Bill DeWitt Jr. said. "His value to our team stretches far beyond the box score, and he showed by season's end that he is still ready and able to compete."

Wainwright, 37, is fifth on the team's career list with 148 wins and second with 1,623 strikeouts. He made just eight starts this season because of hamstring and elbow problems, going 2-4 with a 4.46 ERA.

"If you had asked me that question about two months ago, I would have already checked out on you," Wainwright said after his final start of the season when asked if he wanted to keep pitching. "But the way I'm feeling right now, if that is my last start, it would be kind of hard to walk away knowing the way I'm feeling right now."