Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for recordEviction (0.07 seconds)

  1. guava/src/com/google/common/cache/AbstractCache.java

         * is evicted due to the cache's eviction strategy, and not as a result of manual {@linkplain
         * Cache#invalidate invalidations}.
         */
        void recordEviction();
    
        /**
         * Returns a snapshot of this counter's values. Note that this may be an inconsistent view, as
         * it may be interleaved with update operations.
         */
        CacheStats snapshot();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

            return null;
          }
          if (!isExpired(value)) {
            statsCounter.recordHits(1);
            value.updateTimestamp();
            return value.getValue();
          }
    
          statsCounter.recordEviction();
          statsCounter.recordMisses(1);
          cachingHashMap.remove(key);
        }
        // `key` was in the cache, so it's a K.
        // (Or it's a weird case like a LinkedList in a Cache<ArrayList, ...>, but *shrug*.)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/cache/LocalCache.java

        void enqueueNotification(
            @Nullable K key, int hash, @Nullable V value, int weight, RemovalCause cause) {
          totalWeight -= weight;
          if (cause.wasEvicted()) {
            statsCounter.recordEviction();
          }
          if (map.removalNotificationQueue != DISCARDING_QUEUE) {
            RemovalNotification<K, V> notification = RemovalNotification.create(key, value, cause);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  4. guava/src/com/google/common/cache/LocalCache.java

        void enqueueNotification(
            @Nullable K key, int hash, @Nullable V value, int weight, RemovalCause cause) {
          totalWeight -= weight;
          if (cause.wasEvicted()) {
            statsCounter.recordEviction();
          }
          if (map.removalNotificationQueue != DISCARDING_QUEUE) {
            RemovalNotification<K, V> notification = RemovalNotification.create(key, value, cause);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top