C# Class SenseNet.Portal.UI.OutputCache

This class encloses functionality related to output caching (cacheableportlet, xsltapplication, ...)
ファイルを表示 Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
CanCache ( bool cacheableForLoggedInUser ) : bool
DisableCache ( ) : bool
GetCacheKey ( string customCacheKey, string appNodePath, string portletClientId, bool cacheByPath, bool cacheByParams ) : string
GetCachedOutput ( string cacheKey ) : string
InsertOutputIntoCache ( double absoluteExpiration, double slidingExpiration, string cacheKey, string output, System.Web.Caching.CacheDependency cacheDependency, CacheItemPriority priority ) : void

Private Methods

Method Description
GetAbsoluteExpirationSeconds ( ) : double
GetSlidingExpirationSeconds ( ) : double

Method Details

CanCache() public static method

public static CanCache ( bool cacheableForLoggedInUser ) : bool
cacheableForLoggedInUser bool
return bool

DisableCache() public static method

public static DisableCache ( ) : bool
return bool

GetCacheKey() public static method

public static GetCacheKey ( string customCacheKey, string appNodePath, string portletClientId, bool cacheByPath, bool cacheByParams ) : string
customCacheKey string
appNodePath string
portletClientId string
cacheByPath bool
cacheByParams bool
return string

GetCachedOutput() public static method

public static GetCachedOutput ( string cacheKey ) : string
cacheKey string
return string

InsertOutputIntoCache() public static method

public static InsertOutputIntoCache ( double absoluteExpiration, double slidingExpiration, string cacheKey, string output, System.Web.Caching.CacheDependency cacheDependency, CacheItemPriority priority ) : void
absoluteExpiration double
slidingExpiration double
cacheKey string
output string
cacheDependency System.Web.Caching.CacheDependency
priority CacheItemPriority
return void