Inhibition of indoleamine 2,3-dioxygenase prevented cognitive impairment in adult Wistar rats subjected to pneumococcal meningitis.