The Mets have signed Darwinzon Hernández to a three-year, $12 million deal, The Post’s Joel Sherman confirmed.