public class Cache extends Object
Contains cache settings.
Modifier and Type | Field and Description |
---|---|
static com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler> |
Reallocated |
Modifier and Type | Method and Description |
---|---|
static long |
getAllocatedDiskBytesCount()
Gets the allocated disk bytes count.
|
static long |
getAllocatedMemoryBytesCount()
Gets the allocated in-memory bytes count.
|
static String |
getCacheFolder()
Gets or sets the cache folder.
|
static int |
getCacheType()
Gets or sets the cache scheme used.
|
static boolean |
getExactReallocateOnly()
Gets or sets a value indicating whether reallocation should be exact or not.
|
static int |
getMaxDiskSpaceForCache()
Gets or sets the maximum available disk space for cache.
|
static int |
getMaxMemoryForCache()
Gets or sets the maximum available memory for cache in memory.
|
static void |
setCacheFolder(String value)
Gets or sets the cache folder.
|
static void |
setCacheType(int value)
Gets or sets the cache scheme used.
|
static void |
setDefaults()
Sets the
Cache settings to defaults. |
static void |
setExactReallocateOnly(boolean value)
Gets or sets a value indicating whether reallocation should be exact or not.
|
static void |
setMaxDiskSpaceForCache(int value)
Gets or sets the maximum available disk space for cache.
|
static void |
setMaxMemoryForCache(int value)
Gets or sets the maximum available memory for cache in memory.
|
public static final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler> Reallocated
public static boolean getExactReallocateOnly()
Gets or sets a value indicating whether reallocation should be exact or not. If reallocation is non exact the performance should be higher.
true
if reallocation is exact; otherwise, false
.
public static void setExactReallocateOnly(boolean value)
Gets or sets a value indicating whether reallocation should be exact or not. If reallocation is non exact the performance should be higher.
value
- true
if reallocation is exact; otherwise, false
.
public static String getCacheFolder()
Gets or sets the cache folder.
public static void setCacheFolder(String value)
Gets or sets the cache folder.
value
- The cache folder.public static long getAllocatedMemoryBytesCount()
Gets the allocated in-memory bytes count.
public static long getAllocatedDiskBytesCount()
Gets the allocated disk bytes count.
public static int getMaxMemoryForCache()
Gets or sets the maximum available memory for cache in memory. The value specified is megabytes count.
public static void setMaxMemoryForCache(int value)
Gets or sets the maximum available memory for cache in memory. The value specified is megabytes count.
value
- The maximum memory for cache.
public static int getMaxDiskSpaceForCache()
Gets or sets the maximum available disk space for cache. The value specified is megabytes count.
public static void setMaxDiskSpaceForCache(int value)
Gets or sets the maximum available disk space for cache. The value specified is megabytes count.
value
- The maximum available disk space for cache.
public static int getCacheType()
Gets or sets the cache scheme used.
public static void setCacheType(int value)
Gets or sets the cache scheme used.
value
- The cache scheme used.public static void setDefaults()
Sets the Cache
settings to defaults.