He got there 'with (only) minutes/seconds to spare'. [=he got there only minutes/seconds before he needed to; he got there just in time]
When they go on vacation, they 'spare no expense'. [=they do not worry about spending too much money; they spend a lot of money]
He said that he would 'spare no expense' [=he would spend as much money as necessary] to make the restaurant successful.
(..) My lord. Through the portal, Stormwind! Varis, set the men in a perimeter. Garona, Karos, take what men we can spare and free the prisoners. Form a line, shield to shield! We will hold as long as we can. - Go. (..)2016 Warcraft