Want it to last forever? Think about placing it in the freezer. Yes, things go a bit icy the longer they're in there, depending on the temperature you have your freezer (ideally a freezer should be -18 degrees celcius), but at least you can portion control and rest assured your frozen dishes and ingredients will keep for as long as you want them to.
Not everything can be kept in a container on the shelf, but those ingredients that can still need protection from the elements inside your kitchen to keep them dry and useable. Crackers, pasta, herbs and spices and other packeted goods can often benefit from the right storage container separate from everything else, so consider investing in a study design with enough room for the length and width of what you're trying to store.