C# Класс SenseNet.Portal.UI.OutputCache

This class encloses functionality related to output caching (cacheableportlet, xsltapplication, ...)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetAbsoluteExpirationSeconds ( ) : double
GetSlidingExpirationSeconds ( ) : double

Описание методов

CanCache() публичный статический Метод

public static CanCache ( bool cacheableForLoggedInUser ) : bool
cacheableForLoggedInUser bool
Результат bool

DisableCache() публичный статический Метод

public static DisableCache ( ) : bool
Результат bool

GetCacheKey() публичный статический Метод

public static GetCacheKey ( string customCacheKey, string appNodePath, string portletClientId, bool cacheByPath, bool cacheByParams ) : string
customCacheKey string
appNodePath string
portletClientId string
cacheByPath bool
cacheByParams bool
Результат string

GetCachedOutput() публичный статический Метод

public static GetCachedOutput ( string cacheKey ) : string
cacheKey string
Результат string

InsertOutputIntoCache() публичный статический Метод

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
Результат void