Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
Back to top