Skip to content

Commit 10fa2ef

Browse files
author
Warren Buckley
authored
Merge pull request #53 from drpeck/main
Make UmbracoTagHelperCacheKeys Threadsafe
2 parents 28235b7 + 4f99d1b commit 10fa2ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using Microsoft.AspNetCore.Mvc.TagHelpers.Cache;
2-
using System.Collections.Generic;
2+
using System.Collections.Concurrent;
33

44
namespace Our.Umbraco.TagHelpers.Services
55
{
66
public interface IUmbracoTagHelperCacheKeys
77
{
8-
Dictionary<string, CacheTagKey> CacheKeys { get; }
8+
ConcurrentDictionary<string, CacheTagKey> CacheKeys { get; }
99
}
1010
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.AspNetCore.Mvc.TagHelpers.Cache;
2-
using System.Collections.Generic;
2+
using System.Collections.Concurrent;
33

44
namespace Our.Umbraco.TagHelpers.Services
55
{
@@ -9,6 +9,6 @@ namespace Our.Umbraco.TagHelpers.Services
99
/// </summary>
1010
public class UmbracoTagHelperCacheKeys : IUmbracoTagHelperCacheKeys
1111
{
12-
public Dictionary<string,CacheTagKey> CacheKeys { get; } = new Dictionary<string,CacheTagKey>();
12+
public ConcurrentDictionary<string,CacheTagKey> CacheKeys { get; } = new ConcurrentDictionary<string,CacheTagKey>();
1313
}
1414
}

0 commit comments

Comments
 (0)