The Senegal keeper, 28, will compete with the £71m Kepa Arrizabalaga, the club's record signing.
Kepa was at fault for Liverpool's second goal in the 2-0 Premier League defeat on Sunday, which was described as "a clear mistake" by Lampard.
"We have brought Mendy in for that competition," Lampard said.
Last season for Rennes, Mendy kept nine clean sheets in his league appearances, compared to Kepa's eight cleans sheets in 33 Premier League appearances.
Mendy's save percentage was 76.3% and he conceded a goal every 114 minutes. Kepa's save percentage was 53.5%, conceding a goal every 63 minutes.
However, Kepa's passing accuracy was 79.7% compared to Mendy's 70.1%.
It is understood Mendy will not replace Kepa but with Caballero turning 39 later this month, the club wants a younger challenger to their current number one.