mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 00:15:24 +00:00
换成ConcurrentHashMap
This commit is contained in:
1 parent
e449f326d6
commit
4912642711
1 file changed
+1
-1
@@ -63,7 +63,7 @@ public class EntityCaches<PK extends Comparable<PK>, E extends IEntity<PK>> impl
|
||||
.expireAfterAccess(entityDef.getExpireMillisecond(), TimeUnit.MILLISECONDS)
|
||||
.maximumSize(entityDef.getCacheSize())
|
||||
.initialCapacity(CollectionUtils.comfortableCapacity(entityDef.getCacheSize()))
|
||||
.recordStats() // 开启统计信息开关,cache.stats()获取统计信息
|
||||
//.recordStats() // 开启统计信息开关,cache.stats()获取统计信息
|
||||
.removalListener(new RemovalListener<PK, PNode<E>>() {
|
||||
@Override
|
||||
public void onRemoval(@Nullable PK pk, @Nullable PNode<E> pnode, @NonNull RemovalCause removalCause) {
|
||||
|
||||
Reference in new issue
Block a user