Light does not “think” in any human sense. Still, under the right conditions, it can behave in a way that looks uncannily like a memory system.