port mru_cache from chromium project

port mru_cache from chromium project