Package com.google.gerrit.server.git
Class RepoRefCache
java.lang.Object
com.google.gerrit.server.git.RepoRefCache
- All Implemented Interfaces:
- RefCache
RefCache backed directly by a repository.- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
RepoRefCachepublic RepoRefCache(org.eclipse.jgit.lib.Repository repo) 
 
- 
- 
Method Details- 
getDescription copied from interface:RefCacheGet the possibly-cached value of a ref.- Specified by:
- getin interface- RefCache
- Parameters:
- refName- name of the ref.
- Returns:
- value of the ref; absent if the ref does not exist in the repo. Never null, and never
     present with a value of ObjectId.zeroId().
- Throws:
- IOException
 
- 
getCachedRefsReturns an unmodifiable view of the refs that have been cached by this instance.
- 
closepublic void close()Description copied from interface:RefCacheCloses this cache, releasing the references to any underlying resources.
 
-