返回介绍

Caching.spaceFree 自由空间

发布于 2019-12-18 15:37:27 字数 1339 浏览 923 评论 0 收藏 0

JavaScript => public static var spaceFree: long;
C# => public static long spaceFree;

Description 描述

The number of currently unused bytes in the cache.

在缓存中当前未使用的字节数。

When the cache is empty, this value equals maximumAvailableDiskSpace. As AssetBundles are stored in the cache, this value will decrease. Caching manages cached content based on a Recently Used (LRU) algorithm. If insufficient space is available in the cache to store a requested AssetBundle, the oldest AssetBundles in the cache will be iteratively removed until enough space is free for the new AssetBundle.

当缓存为空时,该值等于最大可获取磁盘数。当资源包被存储在缓存中,该值将会减少。缓存管理缓存内容基于LRU算法。如果可获取的缓存不足以存储需求的资源包,在缓存中旧的资源包将会迭代移除直到足够的自由空间给新的资源包。

This property does not account for total available disk space. If a user's computer has less available disk space on the drive where the cache is located than spaceFree, the full amount of spaceFree will not be usable.

该属性不计算为总的可获取的磁盘空间。如果用户的计算机设备上少于可获取的磁盘空间,即缓存比较于最大可获取的磁盘空间,最大可获取的磁盘空间将不会被使用。

NB: This property value is only valid on WebPlayer builds. Other platforms will report an incorrect value.

NB:该属性值仅在网页播放器上有效。其他平台将会报告值不正确。

caching

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文