You should store pecans and walnuts in the fridge because they have a high oil content. Their oils can cause them to go rancid more quickly, especially if you keep them at room temperature. The fridge’s low temperature will help slow the oxidation process and maintain the freshness of the nuts longer.