System::Net::Cache Namespace Reference

Classes

class  HttpRequestCachePolicy
 HTTP cache policy that expresses RFC2616 HTTP caching semantic Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  RequestCachePolicy
 Common request cache policy used for caching of Http, FTP, etc. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 

Enumerations

enum  RequestCacheLevel {
  RequestCacheLevel::Default = 0, RequestCacheLevel::BypassCache = 1, RequestCacheLevel::CacheOnly = 2, RequestCacheLevel::CacheIfAvailable = 3,
  RequestCacheLevel::Revalidate = 4, RequestCacheLevel::Reload = 5, RequestCacheLevel::NoCacheNoStore = 6
}
 The enum describes cache settings applicable for any WebRequest. More...
 
enum  HttpRequestCacheLevel {
  HttpRequestCacheLevel::Default = 0, HttpRequestCacheLevel::BypassCache = 1, HttpRequestCacheLevel::CacheOnly = 2, HttpRequestCacheLevel::CacheIfAvailable = 3,
  HttpRequestCacheLevel::Revalidate = 4, HttpRequestCacheLevel::Reload = 5, HttpRequestCacheLevel::NoCacheNoStore = 6, HttpRequestCacheLevel::CacheOrNextCacheOnly = 7,
  HttpRequestCacheLevel::Refresh = 8
}
 The enum describes cache settings for HTTP. More...
 
enum  HttpCacheAgeControl {
  HttpCacheAgeControl::None = 0x0, HttpCacheAgeControl::MinFresh = 0x1, HttpCacheAgeControl::MaxAge = 0x2, HttpCacheAgeControl::MaxStale = 0x4,
  HttpCacheAgeControl::MaxAgeAndMinFresh = 0x3, HttpCacheAgeControl::MaxAgeAndMaxStale = 0x6
}
 CacheAgeControl is used to specify preferences with respect of cached item age and freshness. More...
 

Enumeration Type Documentation

◆ HttpCacheAgeControl

CacheAgeControl is used to specify preferences with respect of cached item age and freshness.

Enumerator
None 

For internal use only.

MinFresh 

Content can be taken from the cache if the time remaining before expiration is greater than or equal to the time specified with this value.

MaxAge 

Content can be taken from the cache until it is older than the age specified with this value.

MaxStale 

Content can be taken from the cache after it has expired until the time specified with this value elapses.

MaxAgeAndMinFresh 

MaxAge and MinFresh.

MaxAgeAndMaxStale 

MaxAge and MaxStale.

◆ HttpRequestCacheLevel

The enum describes cache settings for HTTP.

Enumerator
Default 

Satisfies a request for a resource either by using the cached copy of the resource or by sending a request for the resource to the server.

BypassCache 

Satisfies a request by using the server.

CacheOnly 

Always uses the client cache to get a resource.

CacheIfAvailable 

Satisfies a request for a resource from the cache if the resource is available, otherwise sends a request to the server.

Revalidate 

Using a resource local copy if the client timestamp is the same as the timestamp of the resource on the server. Otherwise, a resource is downloaded from a server.

Reload 

A resource is always downloaded from the server.

NoCacheNoStore 

Never satisfies a request by using resources from the cache and does not cache resources.

CacheOrNextCacheOnly 

Satisfies a request for a resource either from the local computer's cache or from a remote cache on the LAN.

Refresh 

Satisfies a request by using the server or a cache other than the local cache.

◆ RequestCacheLevel

The enum describes cache settings applicable for any WebRequest.

Enumerator
Default 

Satisfies a request for a resource either by using the cached copy of the resource or by sending a request for the resource to the server.

BypassCache 

Satisfies a request by using the server. No entries are taken from the cache.

CacheOnly 

Satisfies a request for a resource only from the cache. WebException will be thrown when a resource is not in the client cache.

CacheIfAvailable 

Satisfies a request for a resource from the cache if the resource is available, otherwise sends a request to the server.

Revalidate 

Using a resource local copy if the client timestamp is the same as the timestamp of the resource on the server. Otherwise, a resource is downloaded from a server.

Reload 

A resource is always downloaded from the server.

NoCacheNoStore 

Never satisfies a request by using resources from the cache and does not cache resources.