mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Update FIFOCache.java
看逻辑 应该缺少回调和continue吧
This commit is contained in:
@@ -55,7 +55,9 @@ public class FIFOCache<K, V> extends AbstractCache<K, V> {
|
|||||||
CacheObj<K, V> co = values.next();
|
CacheObj<K, V> co = values.next();
|
||||||
if (co.isExpired()) {
|
if (co.isExpired()) {
|
||||||
values.remove();
|
values.remove();
|
||||||
|
onRemove(co.key, co.obj);
|
||||||
count++;
|
count++;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (first == null) {
|
if (first == null) {
|
||||||
first = co;
|
first = co;
|
||||||
|
Reference in New Issue
Block a user