People who consume a diet containing anti-inflammatory foods, including fruits, vegetables, and coffee, are less likely to develop dementia as they age, a new study reports.