mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 17:50:15 +00:00
22 lines
632 B
C#
22 lines
632 B
C#
using System.Collections.Generic;
|
|
|
|
namespace YooAsset
|
|
{
|
|
/// <summary>
|
|
/// 清理所有缓存文件
|
|
/// </summary>
|
|
internal class EvictionAllPolicy : ICacheEvictionPolicy
|
|
{
|
|
/// <inheritdoc />
|
|
public EvictionResult SelectEvictionTargets(IReadOnlyCollection<ICacheEntry> cacheEntries, BCClearCacheOptions options)
|
|
{
|
|
var bundleGuids = new List<string>(cacheEntries.Count);
|
|
foreach (var entry in cacheEntries)
|
|
{
|
|
bundleGuids.Add(entry.BundleGuid);
|
|
}
|
|
return EvictionResult.CreateSuccess(bundleGuids);
|
|
}
|
|
}
|
|
}
|