Asposecpplib
System::Net::Cache Namespace Reference

Classes

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...
 
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...
 

Enumerations

enum class  RequestCacheLevel {
  Default = 0 , BypassCache = 1 , CacheOnly = 2 , CacheIfAvailable = 3 ,
  Revalidate = 4 , Reload = 5 , NoCacheNoStore = 6
}
 The enum describes cache settings applicable for any WebRequest. More...
 
enum class  HttpRequestCacheLevel {
  Default = 0 , BypassCache = 1 , CacheOnly = 2 , CacheIfAvailable = 3 ,
  Revalidate = 4 , Reload = 5 , NoCacheNoStore = 6 , CacheOrNextCacheOnly = 7 ,
  Refresh = 8
}
 The enum describes cache settings for HTTP. More...
 
enum class  HttpCacheAgeControl {
  None = 0x0 , MinFresh = 0x1 , MaxAge = 0x2 , MaxStale = 0x4 ,
  MaxAgeAndMinFresh = 0x3 , 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.