Skip to content

Commit f00a4a6

Browse files
committed
Opening the KeyBuilder.CacheKey to public.
1 parent 72e7add commit f00a4a6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

DevTrends.MvcDonutCaching/KeyBuilder.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ namespace DevTrends.MvcDonutCaching
66
{
77
public class KeyBuilder : IKeyBuilder
88
{
9-
private const string CacheKeyPrefix = "_d0nutc@che.";
9+
private string _cacheKeyPrefix = "_d0nutc@che.";
10+
11+
public string CacheKeyPrefix
12+
{
13+
get
14+
{
15+
return _cacheKeyPrefix;
16+
}
17+
set
18+
{
19+
_cacheKeyPrefix = value;
20+
}
21+
}
1022

1123
public string BuildKey(string controllerName)
1224
{
@@ -20,7 +32,7 @@ public string BuildKey(string controllerName, string actionName)
2032

2133
public string BuildKey(string controllerName, string actionName, RouteValueDictionary routeValues)
2234
{
23-
var builder = new StringBuilder(CacheKeyPrefix);
35+
var builder = new StringBuilder(_cacheKeyPrefix);
2436

2537
if (controllerName != null)
2638
{

0 commit comments

Comments
 (0)