The Mets addressed one of their needs by trading for Padres lefthanded reliever Alex Torres, the team announced Monday afternoon.

The Mets sent righthander Cory Mazzoni and a player to be named later to San Diego in the deal.

Torres, 27, has a 2.55 ERA and 1.21 WHIP in 113 appearances during three seasons with the Rays and Padres. He had a 3.33 ERA for San Diego in 2014.

He's been effective versus righthanded and lefthanded hitters during his career, holding righties to a .186 average and lefties to a .216 average. However, lefthanders batted .256 against him in 2014.

Mazzoni was 7-2 with a 4.68 ERA in 14 games in the Mets' system last season. He pitched nine games at Triple-A Las Vegas but likely would have been squeezed out of the rotation by a number of promising prospects competing for starting spots this year.

Mazzoni was on the Mets' 40-man roster, so Torres will take Mazzoni's spot.

Lefthanders Dario Alvarez, Jack Leathersich and Sean Gilmartin, a Rule 5 pick, are also on the team's 40-man roster and have been competing for a spot in the Mets' bullpen. The role of a lefthanded specialist became a priority for the team after it was announced earlier this month that Josh Edgin would have Tommy John surgery.