mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
Update FIFOCache.java
看逻辑 应该缺少回调和continue吧
This commit is contained in:
parent
bebf191c19
commit
906953bd11
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user