This abstract class defines the WebResourceCacheProvider object that inherits ProviderBase.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class WebResourceCacheProvider : ProviderBase
Inheritance: objectProviderBaseWebResourceCacheProvider
Derived Classes:
Inherited Members
Constructors
protected WebResourceCacheProvider()
Properties
Gets or sets the is initialized.
public bool IsInitialized { get; protected set; }
The is initialized.
Methods
Checks whether the given unique key and URL are associated in cache.
public abstract 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.
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 abstract void Initialize()
Clears the cache.
public abstract void Invalidate()
Deletes all URL entries for the given key from cache.
public abstract void Invalidate(string pageKey)
The unique key with which URLs are associated. (The key is usually a unique identifier of a web page.)