Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CacheStats (0.07 sec)

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

        assertEquals(4, diff.evictionCount());
    
        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 4.8K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheManualTest.java

    /** @author Charles Fry */
    public class CacheManualTest extends TestCase {
    
      public void testGetIfPresent() {
        Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
        CacheStats stats = cache.stats();
        assertEquals(0, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 23 19:57:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 3.6K bytes
    - Viewed (0)
Back to top