Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateTimestamp (0.04 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        if (value == null) {
          statsCounter.recordMisses(1);
          return null;
        } else if (!isExpired(value)) {
          statsCounter.recordHits(1);
          value.updateTimestamp();
          return value.getValue();
        } else {
          statsCounter.recordEviction();
          statsCounter.recordMisses(1);
          // `key` was in the cache, so it's a K.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  2. 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"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top