public class

PAGDiskCache

extends Object
java.lang.Object
   ↳ org.libpag.PAGDiskCache

Class Overview

Defines methods to manage the disk cache capabilities.

Summary

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

Public Constructors

public PAGDiskCache ()

Public Methods

public static long MaxDiskSize ()

Returns the size limit of the disk cache in bytes. The default value is 1 GB.

public static void RemoveAll ()

Removes all cached files from the disk. All the opened files will be also removed after they are closed.

public 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. The opened files are not removed immediately, even if their disk usage exceeds the limit, and they will be rechecked after they are closed.