Members of the transient receptor potential canonical (TRPC) protein family are widely distributed in the hippocampus of mammals and exert respective and cooperative influences on the functions of neurons. The relationship between specific TRPC subtypes and neuroinflammation is receiving increasing attention. Here, using Cx3cr1CreER IL-10−/−transgenic mice and their littermates, we demonstrated that Cx3cr1CreER IL-10−/− mice displayed spatial memory deficits in object location recognition (OLR) and Morris water maze (MWM) tasks. The decreased levels of TRPC4 and TRPC5 in the hippocampal regions were verified via reverse transcription polymerase chain reaction, western blotting, and immunofluorescence tests. The expression of postsynaptic density protein 95 (PSD95) and synaptophysin in the hippocampus decreased with an imbalance in the local inflammatory environment in the hippocampus. The number of cells positive for ionized calcium binding adaptor molecule 1 (Iba1), a glial fibrillary acidic protein (GFAP), increased with the high expression of interleukin 6 (IL-6) in Cx3cr1CreER IL-10−/− mice. The nod-like receptor protein 3 (NLRP3) inflammasome was also involved in this process, and the cytokines IL-1β and IL-18 activated by NLRP3 were also elevated by western blotting. The colocalization of TRPC5 and calmodulin-dependent protein kinase IIα (CaMKIIα) significantly decreased TRPC5 expression in excitatory neurons. AAV9-CaMKIIα-TRPC5 was used to upregulate TRPC5 in excitatory neurons in the hippocampus. The results showed that the upregulation of TRPC5 improved the memory performance of Cx3cr1CreER IL-10−/− mice by inhibiting NLRP3 inflammasome-associated inflammatory activity.