To store a cake, it is best to keep it in an airtight container at room temperature. If the cake has frosting, make sure it is fully set before covering it. If necessary, you can refrigerate the cake, but bring it back to room temperature before serving to enhance its taste and texture.