Share via


CachePolicyProvider Class

 

Default implementation of ICachePolicyProvider with a set of possible default HTTP caching policies. 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.

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

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.Cache.CachePolicyProvider

Syntax

public class CachePolicyProvider : ICachePolicyProvider
public ref class CachePolicyProvider : ICachePolicyProvider
type CachePolicyProvider = 
    class
        interface ICachePolicyProvider
    end
Public Class CachePolicyProvider
    Implements ICachePolicyProvider

Constructors

Name Description
System_CAPS_pubmethod CachePolicyProvider()

Initializes a new instance of the CachePolicyProvider class with a default CachePolicy.

System_CAPS_pubmethod CachePolicyProvider(CachePolicy)

Initializes a new instance of the CachePolicyProvider class with the given policy.

Properties

Name Description
System_CAPS_pubproperty Policy

Gets the CachePolicy being applied if no HTTP caching response headers have been set on an HttpResponseMessage.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod SetCacheOptions(HttpResponseMessage)

Applies the CachePolicy options to the given response.

System_CAPS_pubmethod SetCachePolicy(HttpResponseMessage)

System_CAPS_protmethod SetMaxAge(HttpResponseMessage)

Applies the CachePolicyMaxAge value to the given response.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service.Cache Namespace

Return to top