Files
XCSDD/docs/api/resources/resourcecache/getlrulist.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

538 B

ResourceCache::GetLRUList

Containers::Array<ResourceGUID> GetLRUList(size_t count) const

获取最近最少使用的 GUID 列表。按 LRU 顺序返回前 count 个资源 GUID。

参数:

  • count - 要获取的 GUID 数量

返回: 最近最少使用的 GUID 数组

复杂度: O(n)

示例:

auto lruList = cache.GetLRUList(10);
for (const auto& guid : lruList) {
    // 标记或处理这些资源...
}

相关文档