Extrahepatic cholangiocarcinoma with CD8+CD45RO+ TILs had longer overall survival (OS) on univariate (P = 0.013) and multivariate (P = 0.012) analysis. The gene discussed is CD8A; the disease is cholangiocarcinoma.