[server] Add repo_id cache support