In an airtight container, the cake will keep for up to four days at room temperature, two weeks in the refrigerator, and up to a year in the freezer.