File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ static class ApiDescriptorCache
2020 /// <summary>
2121 /// 缓存字典
2222 /// </summary>
23- private static readonly ConcurrentDictionary < MethodInfo , ApiActionDescriptor > cache ;
23+ private static readonly ConcurrentCache < MethodInfo , ApiActionDescriptor > cache ;
2424
2525 /// <summary>
2626 /// Api描述的缓存
2727 /// </summary>
2828 static ApiDescriptorCache ( )
2929 {
30- cache = new ConcurrentDictionary < MethodInfo , ApiActionDescriptor > ( ) ;
30+ cache = new ConcurrentCache < MethodInfo , ApiActionDescriptor > ( ) ;
3131 }
3232
3333 /// <summary>
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace WebApiClient
1414 /// </summary>
1515 /// <typeparam name="TKey">键</typeparam>
1616 /// <typeparam name="TValue">值</typeparam>
17- public class ConcurrentCache < TKey , TValue >
17+ class ConcurrentCache < TKey , TValue >
1818 {
1919 /// <summary>
2020 /// 线程安全字典
You can’t perform that action at this time.
0 commit comments