perf[storage]: optimization soft cache

1.优化函数式接口缓存从弱引用为软引用
This commit is contained in:
凌星 committed 2023-09-15 17:16:23 +08:00
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);
/**
* 该缓存可能会在任意不定的时间被清除