Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CacheStats (0.03 sec)

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

        cache.invalidateAll(toInvalidate);
        assertThat(invalidated).isEqualTo(toInvalidate);
      }
    
      public void testEmptySimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        CacheStats stats = counter.snapshot();
        assertThat(stats.requestCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
        assertThat(stats.hitRate()).isEqualTo(1.0);
        assertThat(stats.missCount()).isEqualTo(0);
    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/AbstractCache.java

          totalLoadTime.add(loadTime);
        }
    
        @Override
        public void recordEviction() {
          evictionCount.increment();
        }
    
        @Override
        public CacheStats snapshot() {
          return new CacheStats(
              negativeToMaxValue(hitCount.sum()),
              negativeToMaxValue(missCount.sum()),
              negativeToMaxValue(loadSuccessCount.sum()),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/AbstractCache.java

          totalLoadTime.add(loadTime);
        }
    
        @Override
        public void recordEviction() {
          evictionCount.increment();
        }
    
        @Override
        public CacheStats snapshot() {
          return new CacheStats(
              negativeToMaxValue(hitCount.sum()),
              negativeToMaxValue(missCount.sum()),
              negativeToMaxValue(loadSuccessCount.sum()),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/package-info.java

     * configured and created using {@link CacheBuilder}, with cache entries being loaded by {@link
     * CacheLoader}. Statistics about cache performance are exposed using {@link CacheStats}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/CachesExplained">caches</a>.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jan 03 19:02:39 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Cache.java

       * created using {@link CacheBuilder} only does so if the {@link CacheBuilder#recordStats} method
       * was called. If statistics are not being recorded, a {@code CacheStats} instance with zero for
       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
       * Returns a view of the entries stored in this cache as a thread-safe map. Modifications made to
       * the map directly affect the cache.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/ForwardingCache.java

      }
    
      @Override
      public void invalidateAll() {
        delegate().invalidateAll();
      }
    
      @Override
      public long size() {
        return delegate().size();
      }
    
      @Override
      public CacheStats stats() {
        return delegate().stats();
      }
    
      @Override
      public ConcurrentMap<K, V> asMap() {
        return delegate().asMap();
      }
    
      @Override
      public void cleanUp() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top