Share via


ICachePolicyProvider Interface

 

Provides an abstraction for adding default HTTP caching headers to a given HttpResponseMessage. If no HTTP caching headers have been set on a response then this abstraction is called allowing for a default set of HTTP caching headers to be applied. By default, the CachePolicyProvider implementation is registered with the dependency injection engine but other implementations can be registered as well. If no ICachePolicyProvider is registered then no default caching headers will be added to an HttpResponseMessage.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Cache
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Syntax

public interface ICachePolicyProvider
public interface class ICachePolicyProvider
type ICachePolicyProvider = interface end
Public Interface ICachePolicyProvider

Methods

Name Description
System_CAPS_pubmethod SetCachePolicy(HttpResponseMessage)

Applies the default caching header policy to a given response.

See Also

Microsoft.WindowsAzure.Mobile.Service.Cache Namespace

Return to top