Return an index from `CacheHash.addFile`

This makes it possible for the user to retrieve the contents of the
file without running into data races.
f13c67bcfeLeRoyce Pearson committed on 5/25/2020, 5:48:43 PM· committed by Andrew Kelleyparent4d62d97
1 file changedLine totals unavailable