- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for removeOldestEntry (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} @Throws(IOException::class) fun trimToSize() { while (size > maxSize) { if (!removeOldestEntry()) return } mostRecentTrimFailed = false } /** Returns true if an entry was removed. This will return false if all entries are zombies. */ private fun removeOldestEntry(): Boolean { for (toEvict in lruEntries.values) { if (!toEvict.zombie) { removeEntry(toEvict)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 34.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashMap.java
@GwtIncompatible // not worth using in GWT for now final class CompactLinkedHashMap<K extends @Nullable Object, V extends @Nullable Object> extends CompactHashMap<K, V> { // TODO(lowasser): implement removeEldestEntry so this can be used as a drop-in replacement /** Creates an empty {@code CompactLinkedHashMap} instance. */ public static <K extends @Nullable Object, V extends @Nullable Object>
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 10.2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
this.maximumSize = maximumSize; this.statsCounter = statsCounter; this.removalListener = removalListener; } @Override protected boolean removeEldestEntry(Entry<K, Timestamped<V>> ignored) { boolean removal = (maximumSize == UNSET_INT) ? false : (size() > maximumSize); if ((removalListener != null) && removal) { removalListener.onRemoval(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.8K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
public HandleCache() { this.lruCache = new LinkedHashMap<String, HandleInfo>(maxHandles, 0.75f, true) { @Override protected boolean removeEldestEntry(Map.Entry<String, HandleInfo> eldest) { if (size() > maxHandles) { // Release least recently used non-persistent handleRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0)