mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 12:15:15 +00:00
perf[storage]: optimization soft cache
1.优化函数式接口缓存从弱引用为软引用
This commit is contained in:
1 parent
f2ff1fd237
commit
c11fb919b6
1 file changed
+1
-1
@@ -19,7 +19,7 @@ import java.lang.reflect.Proxy;
|
||||
* @version 1.0
|
||||
*/
|
||||
public final class LambdaUtils {
|
||||
private static final ConcurrentReferenceHashMap<Class, LambdaMeta> CACHE = new ConcurrentReferenceHashMap<>(64, 0.75F, 16, ConcurrentReferenceHashMap.ReferenceType.WEAK);
|
||||
private static final ConcurrentReferenceHashMap<Class, LambdaMeta> CACHE = new ConcurrentReferenceHashMap<>(64, 0.75F, 16, ConcurrentReferenceHashMap.ReferenceType.SOFT);
|
||||
|
||||
/**
|
||||
* 该缓存可能会在任意不定的时间被清除
|
||||
|
||||
Reference in new issue
Block a user