public final class Cache extends Object
Contains cache settings.
Constructor and Description |
---|
Cache() |
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 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.
Value: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.
Value: 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.
Value: The allocated in-memory bytes count.public static long getAllocatedDiskBytesCount()
Gets the allocated disk bytes count.
Value: 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.
Value: The maximum memory for cache.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.
Value: The maximum available disk space for cache.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.
Value: 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.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.