Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEviction_maxWeightOneSegment (0.31 sec)

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

          cache.getUnchecked(i);
          assertEquals(min(i + 1, MAX_SIZE), cache.size());
        }
    
        assertEquals(MAX_SIZE, cache.size());
        CacheTesting.checkValidState(cache);
      }
    
      public void testEviction_maxWeightOneSegment() {
        IdentityLoader<Integer> loader = identityLoader();
        LoadingCache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(1)
                .maximumWeight(2 * MAX_SIZE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top