CachePolicy Class
Defines a cache policy describing which HTTP cache response headers to include in an HttpResponseMessage. The CachePolicy is used by the CachePolicyProvider which defines a default caching policy if no HTTP caching headers have been applied to a given HttpResponseMessage.
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.CachePolicy
Syntax
public class CachePolicy
public ref class CachePolicy
type CachePolicy = class end
Public Class CachePolicy
Constructors
Name | Description | |
---|---|---|
CachePolicy() |
Properties
Name | Description | |
---|---|---|
MaxAge | Gets or sets the timespan after which the response no longer can be considered fresh. If set then include a Cache-Control header field with a Max-Age property set to the value. For backwards compatibility with HTTP/1.0 caches, the Expires header field is also set to an equivalent absolute time stamp. |
|
Options | Gets or sets the CacheOptions to include with the Cache-Control HTTP header field. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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