- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 677 for cache (1.1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
val headers = Headers.headersOf( "cache-control", "no-store", "Cache-Control", "no-cache", ) val headerMap = headers.toMultimap() assertThat(headerMap["cache-control"]!!.size).isEqualTo(2) assertThat(headerMap["Cache-Control"]!!.size).isEqualTo(2) }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
taskFaker.runNextTask() // The rebuild is retried on cache hits and on cache edits. val snapshot = cache["b"]!! snapshot.close() assertThat(cache.edit("d")).isNull() assertThat(taskFaker.isIdle()).isFalse() // On cache misses, no retry job is queued. assertThat(cache["c"]).isNull() assertThat(taskFaker.isIdle()).isFalse()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 59.4K bytes - Viewed (0) -
cmd/storage-rest-common_gen.go
case "c": if dc.IsNil() { err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Cache") return } z.Cache = nil } else { if z.Cache == nil { z.Cache = new(dataUsageCache) } err = z.Cache.DecodeMsg(dc) if err != nil { err = msgp.WrapError(err, "Cache") return } } default: err = dc.Skip() if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.9K bytes - Viewed (0) -
cmd/iam-store.go
newCache.buildUserGroupMemberships() } cache := store.lock() defer store.unlock() // We should only update the in-memory cache if there were no changes // to the in-memory cache since the disk loading began. If there // were changes to the in-memory cache we should wait for the next // cycle until we can safely update the in-memory cache. // // An in-memory cache must be replaced only if we know for sure that the
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 87.1K bytes - Viewed (0) -
guava/src/com/google/common/cache/AbstractCache.java
} /** * Accumulates statistics during the operation of a {@link Cache} for presentation by {@link * Cache#stats}. This is solely intended for consumption by {@code Cache} implementors. * * @since 10.0 */ public interface StatsCounter { /** * Records cache hits. This should be called when a cache request returns a cached value. * * @param count the number of hits to recordRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 9.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
} public void testComputeIfPresent_error() { Cache<String, String> cache = CacheBuilder.newBuilder().build(); cache.put(key, "1"); assertThrows( Error.class, () -> cache .asMap() .computeIfPresent( key, (k, v) -> { throw new Error(); }));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
assertThat(cache.get(34, loader)).isEqualTo(2); cache.invalidate(0); assertThat(cache.get(0, loader)).isEqualTo(3); cache.put(0, 10); cache.invalidateAll(); assertThat(cache.get(0, loader)).isEqualTo(4); } @Test public void sizeConstraint() { Cache<Integer, Integer> cache = CacheBuilder.newBuilder().maximumSize(4).build(); cache.put(1, 10); cache.put(2, 20);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 14.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheRefreshTest.java
assertThat(cache.getUnchecked(0)).isEqualTo(1); assertThat(cache.getUnchecked(1)).isEqualTo(-1); assertThat(cache.getUnchecked(2)).isEqualTo(2); assertThat(loader.getLoadCount()).isEqualTo(expectedLoads); assertThat(loader.getReloadCount()).isEqualTo(expectedReloads); // refresh 2 ticker.advance(1, MILLISECONDS); assertThat(cache.getUnchecked(0)).isEqualTo(1); assertThat(cache.getUnchecked(1)).isEqualTo(-1);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
if (value != null) { return value; } // Store a local reference to the cache entry. If the backing map is immutable, this, // in combination with immutable cache entries, will ensure a thread-safe cache. CacheEntry<K, V> entry; // Check cache. We use == on purpose because it's cheaper and a cache miss is ok. entry = cacheEntry1; if (entry != null && entry.key == key) { return entry.value;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.8K bytes - Viewed (0)