mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change capacity
This commit is contained in:
@@ -37,7 +37,7 @@ public class FIFOCache<K, V> extends AbstractCache<K, V> {
|
||||
public FIFOCache(int capacity, long timeout) {
|
||||
this.capacity = capacity;
|
||||
this.timeout = timeout;
|
||||
cacheMap = new LinkedHashMap<>(Math.max(1 << 4, capacity >>> 7), 1.0f, false);
|
||||
cacheMap = new LinkedHashMap<>(capacity + 1, 1.0f, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user