According to media reports, Torres is expected to miss 3-to-4 months.
The surgery was performed by team physician Dr. Arthur Ting.
"Raffi's surgery went very well and we look forward to having him back in our lineup later this season," Sharks general manager Doug Wilson said in a statement.
Torres injured the knee last Friday in a second-period collision with Anaheim Ducks right wing Emerson Etem. Following the game, Torres was seen leaving the locker room with his right knee bandaged and walking with a slight limp.
"You have to put guys in position to play, and they go play," Sharks coach Todd McLellan said. "They have to play hard and play the way they are supposed (to). In 10 days from now, the real bullets start firing and you have to be prepared.
"No one wants to lose a player to injury in preseason, but there's really nothing you can do about it."
The Sharks re-signed Torres to a three-year, $6 million contract June 20. He was acquired from the Phoenix Coyotes for a third-round pick in the 2013 NHL Draft on April 3. He had seven goals with 11 assists in 39 regular-season games with the Coyotes and Sharks last season.