Garlic confit stays fresh for up to three weeks in the refrigerator or three months in the freezer.