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

28 lines
538 B
Markdown

# ResourceCache::GetLRUList
```cpp
Containers::Array<ResourceGUID> GetLRUList(size_t count) const
```
获取最近最少使用的 GUID 列表。按 LRU 顺序返回前 `count` 个资源 GUID。
**参数:**
- `count` - 要获取的 GUID 数量
**返回:** 最近最少使用的 GUID 数组
**复杂度:** O(n)
**示例:**
```cpp
auto lruList = cache.GetLRUList(10);
for (const auto& guid : lruList) {
// 标记或处理这些资源...
}
```
## 相关文档
- [ResourceCache 总览](resourcecache.md) - 返回类总览