I have known RAM retain data for a few seconds without power. I even designed a system using extended refresh DRAM to run as a backing store using battery backup in the days when you could only get small static RAMs and no NVRAM. They retain data for longer than most people expect.