PAGDiskCache Class Reference

Inherits from NSObject
Declared in PAGDiskCache.h

Overview

Defines methods to manage the disk cache capabilities.

+ MaxDiskSize

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

+ (size_t)MaxDiskSize

Declared In

PAGDiskCache.h

+ SetMaxDiskSize:

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.

+ (void)SetMaxDiskSize:(size_t)size

Declared In

PAGDiskCache.h

+ RemoveAll

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

+ (void)RemoveAll

Declared In

PAGDiskCache.h