H2CacheImpl: Support get(K, Callable<? extends V>)

This method does not come for free from AbstractCache. Fortunately, it
is easy to implement by wrapping the provided Callable.

Change-Id: Ia3ad46dc87e54ddc6e8ee245e065ed4686c72e10
This commit is contained in:
Dave Borowitz
2015-08-06 17:52:40 -07:00
committed by Shawn Pearce
parent e9a29309e3
commit e47caabfa8
3 changed files with 132 additions and 0 deletions

View File

@@ -13,3 +13,16 @@ java_library(
],
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob(['src/test/java/**/*.java']),
deps = [
':cache-h2',
'//gerrit-server:server',
'//lib:guava',
'//lib:h2',
'//lib/guice:guice',
'//lib:junit',
],
)