The rapid and enhanced immune response that occurs after exposure to a specific pathogen that it has previously encountered. Immune memory created at the time of the first exposure (through vaccination or to the disease itself) results in a higher number of antibodies generated within a shorter time, relative to the initial exposure.