This commit is contained in:
Looly 2025-01-03 22:31:09 +08:00
parent 23f2f210f3
commit 14c7998c34

View File

@ -87,7 +87,7 @@ public class LRUCacheTest {
public void issue2647Test(){
final AtomicInteger removeCount = new AtomicInteger();
final LRUCache<String, Integer> cache = CacheUtil.newLRUCache(3,1);
final LRUCache<String, Integer> cache = CacheUtil.newLRUCache(3,1000);
cache.setListener((key, value) -> {
// 共移除7次
removeCount.incrementAndGet();