You've obviously gotten the base level answer, but to add some color here - certain types of food, such as dried pasta, rice, beans, grains, high proof alcohol, vinegars, and basically anything frozen to name a few, never spoil in the sense that they're unsafe to eat.
Flavor, however, is an entirely different matter. Just ask anyone who has eaten freezer burnt food.
Pretty much any high proof alcohol will fall into this category. And, if it's unopened, it should retain most of its flavor for a very long time. Once opened, however, it can deteriorate relatively quickly, depending on how it was stored.
i feel like "does he not like bilbo?" can basically sum up gandalf's actions in the hobbit more generally