- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for CacheLoader (0.25 sec)
-
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
/** * Utility {@link CacheLoader} implementations intended for use in testing. * * @author mike nonemacher */ @GwtCompatible(emulated = true) class TestingCacheLoaders { /** * Returns a {@link CacheLoader} that implements a naive {@link CacheLoader#loadAll}, delegating * {@link CacheLoader#load} calls to {@code loader}. */ static <K, V> CacheLoader<K, V> bulkLoader(final CacheLoader<K, V> loader) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertEquals(2, stats.hitCount()); } public void testReload() throws ExecutionException { final Object one = new Object(); final Object two = new Object(); CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override public Object load(Object key) { return one; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 86.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
final AtomicInteger loadCount = new AtomicInteger(); final AtomicInteger reloadCount = new AtomicInteger(); final AtomicInteger loadAllCount = new AtomicInteger(); CacheLoader<Object, Object> baseLoader = new CacheLoader<Object, Object>() { @Override public Object load(Object key) { loadCount.incrementAndGet(); return new Object(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
CacheBuilder<K, V> builder, CacheLoader<? super K, V> loader) { return new LocalLoadingCache<>(builder, loader); } private CacheBuilder<Object, Object> createCacheBuilder() { return CacheBuilder.newBuilder().recordStats(); } // constructor tests public void testComputingFunction() { CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
CacheBuilder<K, V> builder, CacheLoader<? super K, V> loader) { return new LocalLoadingCache<>(builder, loader); } private CacheBuilder<Object, Object> createCacheBuilder() { return CacheBuilder.newBuilder().recordStats(); } // constructor tests public void testComputingFunction() { CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* of refreshes are specified in {@link LoadingCache#refresh}, and are performed by calling {@link * CacheLoader#reload}. * * <p>As the default implementation of {@link CacheLoader#reload} is synchronous, it is * recommended that users of this method override {@link CacheLoader#reload} with an asynchronous * implementation; otherwise refreshes will be performed during unrelated cache read and write
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 52K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
builder.weigher(constantWeigher(42)).build(CacheLoader.from(Suppliers.ofInstance(null))); } @SuppressWarnings("ReturnValueIgnored") public void testMaximumWeight_withoutWeigher() { CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000")); assertThrows( IllegalStateException.class, () -> builder.build(CacheLoader.from(Suppliers.ofInstance(null)))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
createCacheBuilder() .expireAfterWrite(100, MILLISECONDS) .refreshAfterWrite(5, MILLISECONDS) .ticker(ticker); CacheLoader<String, String> loader = new CacheLoader<String, String>() { @Override public String load(String key) { return key + "Load"; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
createCacheBuilder() .expireAfterWrite(100, MILLISECONDS) .refreshAfterWrite(5, MILLISECONDS) .ticker(ticker); CacheLoader<String, String> loader = new CacheLoader<String, String>() { @Override public String load(String key) { return key + "Load"; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheReferencesTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 6.2K bytes - Viewed (0)