Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StatsCounter (0.12 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        Timestamped<V> value = cachingHashMap.get(key);
    
        if (value == null) {
          statsCounter.recordMisses(1);
          return null;
        } else if (!isExpired(value)) {
          statsCounter.recordHits(1);
          value.updateTimestamp();
          return value.getValue();
        } else {
          statsCounter.recordEviction();
          statsCounter.recordMisses(1);
          // `key` was in the cache, so it's a K.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

       *   https://github.com/google/guava/issues/6565
       */
      @SuppressWarnings("AnonymousToLambda")
      static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
          new Supplier<StatsCounter>() {
            @Override
            public StatsCounter get() {
              return new SimpleStatsCounter();
            }
          };
    
      enum NullListener implements RemovalListener<Object, Object> {
        INSTANCE;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
Back to top