Brief periods of antigenic stimulation or antigen availability during priming favor the enrichment of T CM cells, whereas prolonged periods support T EM cell generation.