[server] Add cache support for repo