Protective capacity of memory CD8+ T cells is dictated by antigen exposure history and nature of the infection.