Generally speaking, hard cheeses, such as parmesan last longer than soft cheeses, such as Brie or goat's milk cheese.