Skip to content

Commit da185d5

Browse files
committed
2 parents 9d14dc6 + 6947d94 commit da185d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WebApiClient/Internal/ApiDescriptorCache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

WebApiClient/Internal/ConcurrentCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/// 线程安全字典

0 commit comments

Comments
 (0)