## Cache class

Contains cache settings.

```csharp
public static class Cache
```

## Properties

| Name | Description |
| --- | --- |
| static [AllocatedDiskBytesCount](../../aspose.cad/cache/allocateddiskbytescount/) { get; } | Gets the allocated disk bytes count. |
| static [AllocatedMemoryBytesCount](../../aspose.cad/cache/allocatedmemorybytescount/) { get; } | Gets the allocated in-memory bytes count. |
| static [CacheFolder](../../aspose.cad/cache/cachefolder/) { get; set; } | Gets or sets the cache folder. |
| static [CacheType](../../aspose.cad/cache/cachetype/) { get; set; } | Gets or sets the cache scheme used. |
| static [ExactReallocateOnly](../../aspose.cad/cache/exactreallocateonly/) { get; set; } | Gets or sets a value indicating whether reallocation should be exact or not. If reallocation is non exact the performance should be higher. |
| static [MaxDiskSpaceForCache](../../aspose.cad/cache/maxdiskspaceforcache/) { get; set; } | Gets or sets the maximum available disk space for cache. The value specified is megabytes count. |
| static [MaxMemoryForCache](../../aspose.cad/cache/maxmemoryforcache/) { get; set; } | Gets or sets the maximum available memory for cache in memory. The value specified is megabytes count. |

## Methods

| Name | Description |
| --- | --- |
| static [SetDefaults](../../aspose.cad/cache/setdefaults/)() | Sets the `Cache` settings to defaults. |

## Events

| Name | Description |
| --- | --- |
| event [Reallocated](../../aspose.cad/cache/reallocated/) | Fires when reallocation was performed |

### See Also

* namespace [Aspose.CAD](../../aspose.cad/)
* assembly [Aspose.CAD](../../)

