DME generally has a longer shelf life than LME. But that really depends on the "d" part of the equation. I don't know how much it it would degrade if it gets damp and forms a brick. Malt extract doesn't really spoil, per se, so it should stll be usable, but the beer may not be as good as one...