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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.RefDatabase
computeIfAbsent
(File path, Function<? super File, ? extends org.eclipse.jgit.lib.RefDatabase> mappingFunction) static org.eclipse.jgit.lib.RefDatabase
getRefDatabase
(File path, org.eclipse.jgit.lib.RefDatabase refDb)
-
Field Details
-
REFDB_CACHE_KEY
-
refDbByRefsDir
-
-
Constructor Details
-
PerThreadRefDbCache
public PerThreadRefDbCache()
-
-
Method Details
-
getRefDatabase
public static org.eclipse.jgit.lib.RefDatabase getRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb) -
computeIfAbsent
-