Can needs to be completely airtight. It'll last a while but fresh fuel is better as old fuel can cause oxidisation of engine components particularly bearings. Personally is only store new cans of fuel for any length of time. Used fuel or half cans I'd only keep for a few months before throwing out.