The refrigerator is the worst place to store a cake in terms of drying it out. If your cake has a cream filling, or can't be left out on the counter until the next day, freezing it is the best option. Freezing stops the moisture loss and keeps the cake fresher. Let it thaw to room temperature before eating.