Walnuts, shelled or unshelled, require refrigeration if you want them to last longer. Exposure to warm temperatures for long periods of time will cause the fat in walnuts to change and turn rancid. Place them in the refrigerator or freezer, depending on when you plan on using them. If you are going to use them within a month, keep them in the refrigerator.