Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for recordEviction (0.06 sec)

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

        for (int i = 0; i < 17; i++) {
          counter.recordLoadException(i);
        }
        for (int i = 0; i < 23; i++) {
          counter.recordMisses(1);
        }
        for (int i = 0; i < 27; i++) {
          counter.recordEviction();
        }
        CacheStats stats = counter.snapshot();
        int requestCount = 11 + 23;
        assertThat(stats.requestCount()).isEqualTo(requestCount);
        assertThat(stats.hitCount()).isEqualTo(11);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadException(long loadTime) {}
    
                @Override
                public void recordEviction() {}
    
                @Override
                public CacheStats snapshot() {
                  return EMPTY_STATS;
                }
              });
      static final CacheStats EMPTY_STATS = new CacheStats(0, 0, 0, 0, 0, 0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadException(long loadTime) {}
    
                @Override
                public void recordEviction() {}
    
                @Override
                public CacheStats snapshot() {
                  return EMPTY_STATS;
                }
              });
      static final CacheStats EMPTY_STATS = new CacheStats(0, 0, 0, 0, 0, 0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.6K bytes
    - Viewed (0)
Back to top