As your carrot cake is frosted with cream cheese, it needs to go in the fridge, where it will last for up to 3 days. Remember to store it in an airtight container to keep it moist and fresh, and avoid absorbing other odours and flavours from the fridge.