updated redirector. replace `Array indexOf` with `Object hash` in cache searching