C# Class SenseNet.Portal.UI.OutputCache

This class encloses functionality related to output caching (cacheableportlet, xsltapplication, ...)
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetAbsoluteExpirationSeconds ( ) : double
GetSlidingExpirationSeconds ( ) : double

Method Details

CanCache() public static méthode

public static CanCache ( bool cacheableForLoggedInUser ) : bool
cacheableForLoggedInUser bool
Résultat bool

DisableCache() public static méthode

public static DisableCache ( ) : bool
Résultat bool

GetCacheKey() public static méthode

public static GetCacheKey ( string customCacheKey, string appNodePath, string portletClientId, bool cacheByPath, bool cacheByParams ) : string
customCacheKey string
appNodePath string
portletClientId string
cacheByPath bool
cacheByParams bool
Résultat string

GetCachedOutput() public static méthode

public static GetCachedOutput ( string cacheKey ) : string
cacheKey string
Résultat string

InsertOutputIntoCache() public static méthode

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
Résultat void