Merge pull request #1856 from anaer/patch-4

Update FIFOCache.java
This commit is contained in:
Golden Looly
2021-09-29 10:00:34 +08:00
committed by GitHub

View File

@@ -55,7 +55,9 @@ public class FIFOCache<K, V> extends AbstractCache<K, V> {
CacheObj<K, V> co = values.next();
if (co.isExpired()) {
values.remove();
onRemove(co.key, co.obj);
count++;
continue;
}
if (first == null) {
first = co;