Compote does not can well, and I do not recommend it. As an alternative, I recommend freezing. To freeze, place the sauce in an airtight container or freezer bag and store it for up to three months.