Inflation rose to 2.3% in October, marking the most rapid increase in two years.