You'd need to store it in an airtight container or cover it with a dome to prevent it from drying out. If you're storing an iced cake, you want to make sure it's completely cool before covering to avoid trapping in any heat, that could make the frosting melt.