It'll really depend on apple's contracts with suppliers and the types of ram used in certain products. I could see them having medium term contracts, with first right of refusal to purchase on the longer term.
Memory has been a boom/bust industry since the 1970s, so I imagine people are careful with long-term agreements, but that's just me spitballing.