mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 新增CacheEvictionPolicy枚举定义LRU和LFU缓存淘汰策略 - 在GodotUiFactory中实现缓存淘汰机制支持LRU/LFU策略 - 将IUiCacheStatistics接口从IUiFactory中分离到独立文件 - 移除UiAnimationPolicy类及相关动画策略参数配置 - 移除GodotUiTransition类中的UI过渡动画实现 - 移除UiTransitionAnimation枚举类型 - 更新UiRouterBase中路由方法移除动画策略参数 - 重构路由守卫注册方法位置优化代码结构 - 更新UiCacheConfig配置类适配新的缓存策略枚举值 -[skip ci]
34 lines
619 B
C#
34 lines
619 B
C#
using System;
|
|
|
|
namespace GFramework.Game.Abstractions.ui;
|
|
|
|
/// <summary>
|
|
/// UI缓存统计信息接口
|
|
/// </summary>
|
|
public interface IUiCacheStatistics
|
|
{
|
|
/// <summary>
|
|
/// 缓存总数
|
|
/// </summary>
|
|
int CacheSize { get; }
|
|
|
|
/// <summary>
|
|
/// 缓存命中次数
|
|
/// </summary>
|
|
int HitCount { get; }
|
|
|
|
/// <summary>
|
|
/// 缓存未命中次数
|
|
/// </summary>
|
|
int MissCount { get; }
|
|
|
|
/// <summary>
|
|
/// 命中率
|
|
/// </summary>
|
|
double HitRate { get; }
|
|
|
|
/// <summary>
|
|
/// 最近访问时间
|
|
/// </summary>
|
|
DateTime? LastAccessTime { get; }
|
|
} |