Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testUpdates (0.1 seconds)

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

                        }));
        assertThat(cache.getIfPresent(key)).isEqualTo("1");
        assertThat(cache.asMap().computeIfPresent(key, (k, v) -> "2")).isEqualTo("2");
      }
    
      public void testUpdates() {
        cache.put(key, "1");
        // simultaneous update for same key, some null, some non-null
        doParallelCacheOp(
            count, n -> cache.asMap().compute(key, (k, v) -> n % 2 == 0 ? v + delimiter + n : null));
    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