Pimento cheese will last one to two weeks, covered in an air-tight container in the refrigerator. Don't freeze it, however. Oils from the mayonnaise and other fats will separate if frozen and thawed.