Dried beans and rice are good. If you store them in a dry and relatively cool place they can last indefinitely. Also, beans are a good source of fiber and protein, so they’re not only good to store, but they’re good for you, too. They are also pretty cheap, since most shoppers prefer the convenience of canned beans, but they are so simple to soak and cook that I very seldom purchase canned beans any more, other than garbanzos / chick peas, which I use in smaller quantities than I would cook up.
So, adding to that list, any canned goods that you do want to use you should buy “store brands” of canned foods as cheaper than nationally known brands (and the same quality, since it’s usually the same product with a different label), but watch the store circulars to see what’s on sale from week to week and buy that. Canned tomatoes are good (if you’re not canning your own, which is also cheap and relatively easy). With beans, rice and canned tomatoes you can make a lot of different dishes, from soups and stews to casseroles and baked beans and chili.
I would not recommend storing much pasta unless you can keep it in airtight containers (not the store packages), since that is susceptible to insect and mold infestation if stored for very long periods in non-airtight containers.