Using hepatitis C virus (HCV) infection in a cohort of high risk people who inject drugs, we demonstrate that protection upon two subsequent infections was associated with a narrow repertoire of virus-specific CD8 T cells and selective expansion of cells with high polyfunctionality (increased TNFα production and cytotoxic potential). This evidence concerns the gene TNF and infection.