Contents

totalCacheFolderSize

The total size of your application’s cache folder.

Declaration

var totalCacheFolderSize: Measurement<UnitInformationStorage> { get }

Discussion

The value of this metric represents total size of cachesDirectory.

Placing files in the appropriate directories, such as the cachesDirectory and temporaryDirectory, allows the system to manage and purge content when necessary, ensuring optimal disk space utilization and a better experience (see File System Basics).

See Also

Reading file sizes