After coming into contact with an antigen, both B cells and T cells can acquire memory. Long-lived lymphocytes called memory B cells and memory T cells “remember” certain infections, enabling a quicker and more efficient immune response in the event of reinfection.