Caching 缓存


The Caching class lets you manage cached AssetBundles, downloaded using WWW.LoadFromCacheOrDownload.

Caching类让你管理资源包缓存,下载使用WWW.LoadFromCacheOrDownload。

Class Variables类变量

  • spaceFree
    Available disk space in bytes.
          可用的磁盘空间,以bytes(字节)为单位。
  • spaceOccupied
    Used disk space in bytes.
          已经使用的磁盘空间,以bytes(字节)为单位。
  • maximumAvailableDiskSpace
    The total number of bytes that can potentially be allocated for caching.
       可能会被用于缓存,分配的字节总数。
  • expirationDelay
    截止延迟
  • enabled
    Is caching enabled?
          缓存是否启用?
  • ready
    准备

Class Functions类函数

  • Authorize
    Authorize this unity content to use caching.
          授权这个Unity内容使用缓存。
  • CleanCache
    Delete the cache folder associated with this content.
          删除这个内容相关的缓存文件夹。
  • IsVersionCached
    Checks if an AssetBundle is cached.
          检查,如果一个资源包被缓存。
  • MarkAsUsed
    Bumps the timestamp of a cached file to be the current time.
       标记一个缓存文件到当前的时间。


,