If you will not be using all the cupcakes at once, store them before adding the candy cane. Use a container with a lid to keep out air and moisture. Cupcakes should stay fresh for 5-7 days.