Retired Judge Susan Cacace, a Democrat, has been elected district attorney of Westchester County, according to unofficial results from the Westchester Board of Elections.