Pathogen immunity information is stored in cellular memory via adaptive immune cells in vertebrates and CRISPR loci in prokaryotes.
The retrieved literature thoroughly demonstrates that adaptive immune cells (such as memory B and T cells) store immunological memory in vertebrate systems, while CRISPR-Cas loci serve as adaptive immune systems storing genetic spacer sequences for pathogen defense in prokaryotes. All relevant papers support the claim.