depends on how hard you are on the bike and how strong you are..
aluminum has a life span of about 250,000 cycles, which means you can stress it at its maximum load bering (thats before it actually cracks) 250,000 times, then the metal starts fatiguing (but not necessarily broken yet).
if you are an easy recreational rider you may not even take it through one single cycle because you wouldnt put the stress on it like a racer who sprints 1000 watts of power, thus the aluminum frame would last the lifetime of the easy going rider.
but most racers who train and race on the same frame end up tossing aluminum frames in one to two seasons even though they are still intact. it becomes to risky for the pro racers to keep them because they may be on cycle 249,000 and one more hard effort may shatter the bottom bracket or the heat tube, or the seat stay (the most break areas) were talking pro guys that put in 20,000+ miles per year.
also the grade of aluminum makes a difference. my caad 4 cannondale lasted 2 and a half seasons before the seat stay cracked. that was a 2.3 lbs frame. if i rode a straight gauge tube frame (not butted) it would have lasted a lot longer, but would weighed a lot more.
i would also be more concerned about the joint where they bond the carbon and aluminum.
as for carbon,, if it is monocoque, not lugged only, carbon has an infinate cycle life span, which means you have to stress til it breaks (crush it, hit by a car, ect..), other than that, you can flex it an infinate amount of times and it should not fatigue and remain in its "memory" form.