Homemade compote will keep for up to 1 week in an airtight container in the refrigerator. For longer-term storage, it can be frozen for up to 3 months in a freezer-safe bag, ice cube trays, or a wide-mouth mason jar. If frozen, thaw in the refrigerator or on the counter at room temperature. Reheat in the microwave or a saucepan over low heat until warmed through.