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 | |
---|---|---|
CachePolicyProvider() | Initializes a new instance of the CachePolicyProvider class with a default CachePolicy. |
|
CachePolicyProvider(CachePolicy) | Initializes a new instance of the CachePolicyProvider class with the given policy. |
Properties
Name | Description | |
---|---|---|
Policy | Gets the CachePolicy being applied if no HTTP caching response headers have been set on an HttpResponseMessage. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
SetCacheOptions(HttpResponseMessage) | Applies the CachePolicy options to the given response. |
|
SetCachePolicy(HttpResponseMessage) | ||
SetMaxAge(HttpResponseMessage) | Applies the CachePolicyMaxAge value to the given response. |
|
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