Class Cache
Contains cache settings.
public static class Cache
- Inheritance
-
Cache
- Inherited Members
Properties
AllocatedDiskBytesCount
Gets the allocated disk bytes count.
public static long AllocatedDiskBytesCount { get; }
Property Value
- long
The allocated disk bytes count.
AllocatedMemoryBytesCount
Gets the allocated in-memory bytes count.
public static long AllocatedMemoryBytesCount { get; }
Property Value
- long
The allocated in-memory bytes count.
CacheFolder
Gets or sets the cache folder.
public static string CacheFolder { get; set; }
Property Value
- string
The cache folder.
CacheType
Gets or sets the cache scheme used.
public static CacheType CacheType { get; set; }
Property Value
- CacheType
The cache scheme used.
ExactReallocateOnly
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 bool ExactReallocateOnly { get; set; }
Property Value
- bool
true
if reallocation is exact; otherwise,false
.
Remarks
The exact reallocation will perform reallocation of additional memory only up to the upper limit specified. When passing upper limit for in-memory during reallocation the cached data will be copied to disk if possible. When passing upper limit for disk memory during reallocation the appropriate exception is thrown. The performance should be higher if this option is turned off as no additional copying will be performed if possible, however this may also lead to pass upper limits specified for memory or disk.
MaxDiskSpaceForCache
Gets or sets the maximum available disk space for cache. The value specified is megabytes count.
public static int MaxDiskSpaceForCache { get; set; }
Property Value
- int
The maximum available disk space for cache.
Remarks
Value of 0 will consume all available memory and serves as no upper limit.
MaxMemoryForCache
Gets or sets the maximum available memory for cache in memory. The value specified is megabytes count.
public static int MaxMemoryForCache { get; set; }
Property Value
- int
The maximum memory for cache.
Remarks
Value of 0 will consume all available memory and serves as no upper limit.
Methods
SetDefaults()
Sets the Cache settings to defaults.
public static void SetDefaults()