Asposecpplib
System::Net::Cache Namespace Reference

Classes

class  RequestCachePolicy
 Dummy class making it possible linking ported code with RequestCachePolicy references, but not executing it. Contains no properly implemented members. 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
}
 Specifies caching behavior for resources obtained using System.Net.WebRequest and its derived classes. More...
 

Enumeration Type Documentation

◆ RequestCacheLevel

Specifies caching behavior for resources obtained using System.Net.WebRequest and its derived classes.

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 caches, added to caches, or removed from caches between the client and server.

CacheOnly 

Satisfies a request using the locally cached resource; does not send a request for an item that is not in the cache.

CacheIfAvailable 

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

Revalidate 

Satisfies a request by using the cached copy of the resource if the timestamp is the same as the timestamp of the resource on the server; otherwise, the resource is downloaded from the server, presented to the caller, and stored in the cache.

Reload 

Satisfies a request by using the server.

NoCacheNoStore 

Never satisfies a request by using resources from the cache and does not cache resources. If the resource is present in the local cache, it is removed.