Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getIfPresent (0.1 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        ticker.advance(1, MILLISECONDS);
        assertSame(one, cache.getIfPresent(key));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(1, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(1, stats.hitCount());
    
        ticker.advance(1, MILLISECONDS);
        assertSame(two, cache.getIfPresent(key));
        stats = cache.stats();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top