- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 525 for Cache (0.03 sec)
-
samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java
return originalResponse.newBuilder() .header("Cache-Control", "max-age=60") .build(); }; private final OkHttpClient client; public RewriteResponseCacheControl(File cacheDirectory) throws Exception { Cache cache = new Cache(cacheDirectory, 1024 * 1024); cache.evictAll(); client = new OkHttpClient.Builder() .cache(cache) .build(); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 12 03:31:36 UTC 2019 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java
for (LoadingCache<Object, Object> cache : caches()) { checkEmpty(cache); } } public void testInvalidate_empty() { for (LoadingCache<Object, Object> cache : caches()) { cache.getUnchecked("a"); cache.getUnchecked("b"); cache.invalidate("a"); cache.invalidate("b"); cache.invalidate(0); checkEmpty(cache); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/EmptyCachesTest.java
for (LoadingCache<Object, Object> cache : caches()) { checkEmpty(cache); } } public void testInvalidate_empty() { for (LoadingCache<Object, Object> cache : caches()) { cache.getUnchecked("a"); cache.getUnchecked("b"); cache.invalidate("a"); cache.invalidate("b"); cache.invalidate(0); checkEmpty(cache); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
*/ package com.google.common.cache; import static com.google.common.cache.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.cache.TestingCacheLoaders.constantLoader; import static com.google.common.cache.TestingCacheLoaders.identityLoader; import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; import static com.google.common.cache.TestingRemovalListeners.nullRemovalListener;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 24.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertTrue(cache.asMap().remove(key, value)); assertFalse(cache.asMap().remove(key, -1)); assertFalse(cache.asMap().containsKey(key)); } checkEmpty(cache); } } public void testKeySet_populated() { for (LoadingCache<Object, Object> cache : caches()) { Set<Object> keys = cache.asMap().keySet();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 15K bytes - Viewed (0) -
internal/cachevalue/cache_test.go
t.Fatalf("expected time to be un-equal: %s == %s", t1, t3) } } func TestCache(t *testing.T) { cache := New[time.Time]() t.Parallel() cache.InitOnce(2*time.Second, Opts{}, func(ctx context.Context) (time.Time, error) { return time.Now(), nil }, ) t1, _ := cache.Get() t2, _ := cache.Get() if !t1.Equal(t2) { t.Fatalf("expected time to be equal: %s != %s", t1, t2) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheStats.java
/** * Statistics about the performance of a {@link Cache}. Instances of this class are immutable. * * <p>Cache statistics are incremented according to the following rules: * * <ul> * <li>When a cache lookup encounters an existing cache entry {@code hitCount} is incremented. * <li>When a cache lookup first encounters a missing cache entry, a new entry is loaded. * <ul>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheStats.java
/** * Statistics about the performance of a {@link Cache}. Instances of this class are immutable. * * <p>Cache statistics are incremented according to the following rules: * * <ul> * <li>When a cache lookup encounters an existing cache entry {@code hitCount} is incremented. * <li>When a cache lookup first encounters a missing cache entry, a new entry is loaded. * <ul>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* by the garbage collector. Entries with reclaimed keys or values may be removed from the cache on * each cache modification, on occasional cache accesses, or on calls to {@link Cache#cleanUp}; such * entries may be counted in {@link Cache#size}, but will never be visible to read or write * operations. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 51.6K bytes - Viewed (0) -
.teamcity/test-buckets.json
"plugins-java-library", "antlr", "base-services", "build-cache", "build-cache-http", "build-cache-local", "build-cache-spi", "build-configuration", "build-events", "build-profile", "code-quality", "composite-builds", "configuration-cache", "core-api", "declarative-dsl-core", "declarative-dsl-provider",
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Oct 08 11:14:16 UTC 2024 - 87.8K bytes - Viewed (0)