Package com.google.gerrit.server.cache
Class PerThreadRefDbCache
java.lang.Object
com.google.gerrit.server.cache.PerThreadRefDbCache
A per request thread cache of RefDatabases by directory (Project).
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.eclipse.jgit.lib.RefDatabasecomputeIfAbsent(File path, Function<? super File, ? extends org.eclipse.jgit.lib.RefDatabase> mappingFunction) static org.eclipse.jgit.lib.RefDatabasegetRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb) 
- 
Field Details- 
REFDB_CACHE_KEY
- 
refDbByRefsDir
 
- 
- 
Constructor Details- 
PerThreadRefDbCachepublic PerThreadRefDbCache()
 
- 
- 
Method Details- 
getRefDatabasepublic static org.eclipse.jgit.lib.RefDatabase getRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb) 
- 
computeIfAbsent
 
-