C# Class GSoft.Dynamite.Cache.ParameterizedCacheKey

Parameterized cache key
Datei anzeigen Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
ParameterizedCacheKey ( string keyForBothLanguages )

Creates a new parameter-based cache key to cache the same items regardless of the current language

ParameterizedCacheKey ( string englishKeyPrefix, string frenchKeyPrefix )

Creates a new parameter-based cache key to cache different items depending on the current language

WithParameter ( string parameter ) : ICacheKey

Creates the parameter-specific cache key

Method Details

ParameterizedCacheKey() public method

Creates a new parameter-based cache key to cache the same items regardless of the current language
public ParameterizedCacheKey ( string keyForBothLanguages )
keyForBothLanguages string The key prefix to share between both English and French content items

ParameterizedCacheKey() public method

Creates a new parameter-based cache key to cache different items depending on the current language
public ParameterizedCacheKey ( string englishKeyPrefix, string frenchKeyPrefix )
englishKeyPrefix string English key prefix to put in front of the parameter
frenchKeyPrefix string French key prefix to put in front of the parameter

WithParameter() public method

Creates the parameter-specific cache key
public WithParameter ( string parameter ) : ICacheKey
parameter string The cache key suffix for parameterization
return ICacheKey