Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testComputeWithLoad (0.08 seconds)

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

        cache.put(key, "1");
        // simultaneous deletion
        doParallelCacheOp(count, n -> cache.asMap().compute(key, (k, v) -> null));
        assertThat(cache.size()).isEqualTo(0);
      }
    
      public void testComputeWithLoad() {
        Queue<RemovalNotification<String, String>> notifications = new ConcurrentLinkedQueue<>();
        cache =
            CacheBuilder.newBuilder()
                .removalListener(notifications::add)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.4K bytes
    - Click Count (0)
Back to Top