Added cache support for repository