The oil in nuts can become rancid and make the nuts taste bad. To extend the shelf life of nuts, store them in the freezer in an airtight container. They will keep for up to a year. They will keep in the refrigerator for up to six months.