Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for evict (3.98 sec)

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

        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(9, 0, 1, 2, 10, 6, 7, 8);
    
        // evict 9, 1, 2, 10
        getAll(cache, asList(15));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

       *
       * <p>Note that the cache <b>may evict an entry before this limit is exceeded</b>. For example, in
       * the current implementation, when {@code concurrencyLevel} is greater than {@code 1}, each
       * resulting segment inside the cache <i>independently</i> limits its own size to approximately
       * {@code maximumSize / concurrencyLevel}.
       *
       * <p>When eviction is necessary, the cache evicts entries that are less likely to be used again.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

       *
       * <p>Note that the cache <b>may evict an entry before this limit is exceeded</b>. For example, in
       * the current implementation, when {@code concurrencyLevel} is greater than {@code 1}, each
       * resulting segment inside the cache <i>independently</i> limits its own size to approximately
       * {@code maximumSize / concurrencyLevel}.
       *
       * <p>When eviction is necessary, the cache evicts entries that are less likely to be used again.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      @Override
      public int size() {
        return size;
      }
    
      /**
       * Adds the given element to this queue. If this queue has a maximum size, after adding {@code
       * element} the queue will automatically evict its greatest element (according to its comparator),
       * which may be {@code element} itself.
       *
       * @return {@code true} always
       */
      @CanIgnoreReturnValue
      @Override
      public boolean add(E element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      @Override
      public int size() {
        return size;
      }
    
      /**
       * Adds the given element to this queue. If this queue has a maximum size, after adding {@code
       * element} the queue will automatically evict its greatest element (according to its comparator),
       * which may be {@code element} itself.
       *
       * @return {@code true} always
       */
      @CanIgnoreReturnValue
      @Override
      public boolean add(E element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

       * across different segments.
       *
       * If a maximum size is specified, a best-effort bounding is performed per segment, using a
       * page-replacement algorithm to determine which entries to evict when the capacity has been
       * exceeded.
       *
       * The page replacement algorithm's data structures are kept casually consistent with the map. The
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                    }
                  });
        }
    
        threadPool.shutdown();
        threadPool.awaitTermination(300, SECONDS);
    
        // Since we're not doing any more cache operations, and the cache only expires/evicts when doing
        // other operations, the cache and the removal queue won't change from this point on.
    
        // Verify that each received removal notification was valid
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top