@@ -14,15 +14,15 @@ public PersonalCache(HttpContext context)
1414 _Cache = context . RequestServices . GetService < IMemoryCache > ( ) ;
1515 }
1616
17- public void SetPersonalCache ( string PersonalName , string ResponseResult , int Duration )
17+ public void SetPersonalCache ( string CacheParameter , string ResponseResult , int Duration )
1818 {
19- _Cache . Set ( "code_behind_cache_personal_" + PersonalName , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
19+ _Cache . Set ( "code_behind_cache_personal_" + CacheParameter , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
2020 }
2121
2222 public bool PersonalHasCache { get ; private set ; }
23- public string GetPersonalCache ( string PersonalName )
23+ public string GetPersonalCache ( string CacheParameter )
2424 {
25- if ( _Cache . TryGetValue ( "code_behind_cache_personal_" + PersonalName , out string ResponseResult ) )
25+ if ( _Cache . TryGetValue ( "code_behind_cache_personal_" + CacheParameter , out string ResponseResult ) )
2626 {
2727 PersonalHasCache = true ;
2828 return ResponseResult ;
@@ -42,15 +42,15 @@ public ControllerCache(HttpContext context)
4242 _Cache = context . RequestServices . GetService < IMemoryCache > ( ) ;
4343 }
4444
45- public void SetControllerCache ( string ControllerName , string ResponseResult , int Duration )
45+ public void SetControllerCache ( string CacheParameter , string ResponseResult , int Duration )
4646 {
47- _Cache . Set ( "code_behind_cache_controller_" + ControllerName , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
47+ _Cache . Set ( "code_behind_cache_controller_" + CacheParameter , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
4848 }
4949
5050 public bool ControllerHasCache { get ; private set ; }
51- public string GetControllerCache ( string ControllerName )
51+ public string GetControllerCache ( string CacheParameter )
5252 {
53- if ( _Cache . TryGetValue ( "code_behind_cache_controller_" + ControllerName , out string ResponseResult ) )
53+ if ( _Cache . TryGetValue ( "code_behind_cache_controller_" + CacheParameter , out string ResponseResult ) )
5454 {
5555 ControllerHasCache = true ;
5656 return ResponseResult ;
@@ -70,15 +70,15 @@ public ViewCache(HttpContext context)
7070 _Cache = context . RequestServices . GetService < IMemoryCache > ( ) ;
7171 }
7272
73- public void SetViewCache ( string ViewPath , string ResponseResult , int Duration )
73+ public void SetViewCache ( string CacheParameter , string ResponseResult , int Duration )
7474 {
75- _Cache . Set ( "code_behind_cache_view_" + ViewPath , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
75+ _Cache . Set ( "code_behind_cache_view_" + CacheParameter , ResponseResult , TimeSpan . FromSeconds ( Duration ) ) ;
7676 }
7777
7878 public bool ViewHasCache { get ; private set ; }
79- public string GetViewCache ( string ViewPath )
79+ public string GetViewCache ( string CacheParameter )
8080 {
81- if ( _Cache . TryGetValue ( "code_behind_cache_view_" + ViewPath , out string ResponseResult ) )
81+ if ( _Cache . TryGetValue ( "code_behind_cache_view_" + CacheParameter , out string ResponseResult ) )
8282 {
8383 ViewHasCache = true ;
8484 return ResponseResult ;
0 commit comments