Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for hitCount (0.24 sec)

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

        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        Object key = new Object();
        assertSame(key, cache.get(key));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(1, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        key = new Object();
        assertSame(key, cache.getUnchecked(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        Object key = new Object();
        assertSame(key, cache.get(key));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(1, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        key = new Object();
        assertSame(key, cache.getUnchecked(key));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheStats.java

      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheStats.java

      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(0, cache.stats().hitCount());
        assertEquals(0, cache.stats().missCount());
    
        Object one = new Object();
        cache.getUnchecked(one);
        assertEquals(0, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
        cache.getUnchecked(one);
        assertEquals(1, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/log/cbean/cq/bs/BsSearchLogCQ.java

        }
    
        public void setHitCount_Equal(Long hitCount) {
            setHitCount_Term(hitCount, null);
        }
    
        public void setHitCount_Equal(Long hitCount, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setHitCount_Term(hitCount, opLambda);
        }
    
        public void setHitCount_Term(Long hitCount) {
            setHitCount_Term(hitCount, null);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 145.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.1") // cached
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(1)
    
        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/cache/AbstractCache.java

        }
    
        /** Increments all counters by the values in {@code other}. */
        public void incrementBy(StatsCounter other) {
          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(0, cache.stats().hitCount());
        assertEquals(0, cache.stats().missCount());
    
        Object one = new Object();
        cache.getUnchecked(one);
        assertEquals(0, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
        cache.getUnchecked(one);
        assertEquals(1, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/cbean/ca/bs/BsSearchLogCA.java

        }
    
        public void setHitCount_Avg(ConditionOptionCall<AvgAggregationBuilder> opLambda) {
            setHitCount_Avg("hitCount", opLambda);
        }
    
        public void setHitCount_Avg(String name, ConditionOptionCall<AvgAggregationBuilder> opLambda) {
            AvgAggregationBuilder builder = regAvgA(name, "hitCount");
            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 115.2K bytes
    - Viewed (0)
Back to top