mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-24 04:25:35 +00:00
@@ -155,7 +155,7 @@ public class LazyCache<K, V> {
|
||||
removeListener.accept(removeList, removalCause);
|
||||
}
|
||||
|
||||
private void checkMaximumSize() {
|
||||
private synchronized void checkMaximumSize() {
|
||||
if (cacheMap.size() > backPressureSize) {
|
||||
var removeList = cacheMap.values()
|
||||
.stream()
|
||||
|
||||
Reference in New Issue
Block a user