I had a 2008 iMac HDD fail when it was barely out of warranty in either late 2009 or very early 2010 and was charged full price for the repair, then a "we'll recycle it for free" when my barely 1 year old iPod Touch decided to stop connecting via USB after updating it to iOS4.
In 2013 the same Apple store replaced a 3rd party stick of RAM in my iMac for an Apple one for free when I sent it to fix the bad hinge on that year's model.