The era of flash memory is anticipated to run out of road in the 2020s and newer technologies involving resistance and electron spin are poised to take over, delivering higher capacities, greater speed and DRAM-style addressability.