File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
DevTrends.MvcDonutCaching Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments