Protective effects of resveratrol on aging-induced cognitive impairment in rats