---
title: "System::Net::Cache namespace"
url: "https://reference.aspose.com/pdf/cpp/system.net.cache/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use System::Net::Cache namespace in C++."
---




## Classes

| Class | Description |
| --- | --- |
| [HttpRequestCachePolicy](./httprequestcachepolicy/) | HTTP cache policy that expresses RFC2616 HTTP caching semantic Objects of this class should only be allocated using [System::MakeObject()](../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](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [RequestCachePolicy](./requestcachepolicy/) | Common request cache policy used for caching of [Http](../system.net.http/), FTP, etc. Objects of this class should only be allocated using [System::MakeObject()](../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](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
## Enums

| Enum | Description |
| --- | --- |
| [HttpCacheAgeControl](./httpcacheagecontrol/) | CacheAgeControl is used to specify preferences with respect of cached item age and freshness. |
| [HttpRequestCacheLevel](./httprequestcachelevel/) | The enum describes cache settings for HTTP. |
| [RequestCacheLevel](./requestcachelevel/) | The enum describes cache settings applicable for any [WebRequest](../system.net/webrequest/). |
