Baseflow / Baseflow/flutter_cache_manager

Cache hit/miss metrics

未关闭
#189 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
type: enhancement
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

## 🏗 Enhancement Proposal

Have cache manager keep a count of cache hit/misses during use.

### Pitch

Something that popped into my head while testing for #179, it would be useful for the cache manager to store cache hit/miss counts. This would allow app developers to better understand how the cache is performing, and adjust usage to improve cache hit rates.

### Platforms affected (mark all that apply)
- [x] :iphone: iOS
- [x] :robot: Android

贡献指南

打开贡献指南

调研方向

首先在 repository 中追踪 cache manager 的缓存查找和存储路径,因为 issue 没有指定文件或测试。确定 hit 和 miss 事件发生的位置,以及应如何为 iOS 和 Android 的使用公开计数;完成的标准是,在使用过程中维护 cache hit/miss 计数,并由相关测试覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。