Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 500 (0.01 sec)

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

      }
    
      public void testExpireAfterWriteAndAccess() {
        final Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .expireAfterWrite(1000, MILLISECONDS)
                .expireAfterAccess(500, MILLISECONDS)
                .ticker(fakeTicker)
                .build();
    
        cache.put(10, 100);
        cache.put(20, 200);
        cache.put(4, 2);
    
        fakeTicker.advance(499, MILLISECONDS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top