AppDataCacheProvider
This Class defines AppDataCacheProvider that inherits WebResourceCacheProvider.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class AppDataCacheProvider : WebResourceCacheProvider
Inheritance: objectProviderBaseWebResourceCacheProviderAppDataCacheProvider
Inherited Members
Constructors
public AppDataCacheProvider()
Methods
Checks whether the given unique key and URL are associated in cache.
public override bool AreAssociated(string pageKey, string resourceUid)
The unique key with which the URL will be associated. The key is usually a unique identifier of a web page.
resourceUidstringThe URL of the requested combination of web resources.
Returns:True if the key and URL are associated in cache; false otherwise.
Overrides:
Associates the given unique key with a URL of a combination of web resources. One key can have many URLs associated with it.
Gets the combined web resources output from cache for a given URL. The method reads the content of the entry in the cache. If you want to verify whether an entry exists, use the Exists method.
If the provider is created with code, put the initialization logic of the provider in this method. Optionally you can set the IsInitialized property to true after the initialization finishes. The ScriptCacheProviderManager calls this method when the Provider property is set if the IsInitialized property of the provider returns false.
public override void Initialize()
Overrides:
Initializes the provider.
public override void Initialize(string name, NameValueCollection config)
The friendly name of the provider.
configNameValueCollectionA collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
Exceptions: ArgumentNullExceptionThe name of the provider is null.
ArgumentExceptionThe name of the provider has a length of zero.
InvalidOperationExceptionAn attempt is made to call Initialize(string, NameValueCollection) on a provider after the provider has already been initialized.
Overrides:
Initializes the specified app data relative path.
public void Initialize(string appDataRelativePath)
The app data relative path.
Clears the cache.
public override void Invalidate()
Overrides:
Deletes all URL entries for the given key from cache.
public override void Invalidate(string pageKey)
The unique key with which URLs are associated. (The key is usually a unique identifier of a web page.)
Overrides:
Stores the combined web resources output for a given unique URL in cache.