Aspose.Imaging by Aspose

<PackageReference Include="Aspose.Imaging" Version="19.6.0" />

.NET API 7,691,328 bytes

 Cache

public static class Cache
Contains cache settings.
public static long AllocatedDiskBytesCount { get; }

Gets the allocated disk bytes count.

public static long AllocatedMemoryBytesCount { get; }

Gets the allocated in-memory bytes count.

public static string CacheFolder { get; set; }

Gets or sets the cache folder.

public static CacheType CacheType { get; set; }

Gets or sets the cache scheme used.

public static bool 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.

public static int MaxDiskSpaceForCache { get; set; }

Gets or sets the maximum available disk space for cache. The value specified is megabytes count.

public static int MaxMemoryForCache { get; set; }

Gets or sets the maximum available memory for cache in memory. The value specified is megabytes count.

public static void SetDefaults()

Sets the Cache settings to defaults.