mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
commit
77fe41cef1
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user