- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for updateTimestamp (0.09 seconds)
-
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
if (value == null) { statsCounter.recordMisses(1); return null; } if (!isExpired(value)) { statsCounter.recordHits(1); value.updateTimestamp(); return value.getValue(); } statsCounter.recordEviction(); statsCounter.recordMisses(1); cachingHashMap.remove(key); } // `key` was in the cache, so it's a K.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 21.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
assertThat(response2.body.string()).isEqualTo("A") assertThat(response2.header("Allow")).isEqualTo("GET, HEAD") val updatedTimestamp = response2.receivedResponseAtMillis assertThat((updatedTimestamp - t1).toDouble()).isCloseTo(0.0, 250.0) // A full cache hit reads the cache. Thread.sleep(10) val response3 = get(server.url("/a"))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0)