java.lang.Object | |
↳ | org.libpag.PAGDiskCache |
Defines methods to manage the disk cache capabilities.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PAGDiskCache() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static long |
MaxDiskSize()
Returns the size limit of the disk cache in bytes.
| ||||||||||
static void |
RemoveAll()
Removes all cached files from the disk.
| ||||||||||
static void |
SetMaxDiskSize(long size)
Sets the size limit of the disk cache in bytes, which will triggers the cache cleanup if the
disk usage exceeds the limit.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the size limit of the disk cache in bytes. The default value is 1 GB.
Removes all cached files from the disk. All the opened files will be also removed after they are closed.
Sets the size limit of the disk cache in bytes, which will triggers the cache cleanup if the disk usage exceeds the limit. The opened files are not removed immediately, even if their disk usage exceeds the limit, and they will be rechecked after they are closed.