Baseflow / Baseflow/flutter_cache_manager

Support to manually trigger CacheStore._cleanupCache()

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

描述

## 🚀 Feature Requests

Support to manually trigger CacheStore._cleanupCache()

### Describe the feature
In current CacheStore implementation _cleanupCache() function is triggered 10 seconds later after every call to CacheStore.retrieveCacheData function. That means; if we don't request a new -not yet cached uri-, retrieveCacheData function will not be triggered, so there is no way that _cleanupCache logic have a chance to run again.

As I understand correctly; in current implementation there is no way to get a new version of an already cached url resource till we request a new uri resource to trigger cleanup logic.

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

贡献指南

打开贡献指南

调研方向

首先跟踪 CacheStore.retrieveCacheData 和延迟的 _cleanupCache() 调用,以了解当前何时运行清理。定义手动触发器对已缓存 URL 的预期行为,然后验证无需请求新的 URI 即可调用清理,并通过相关的 cache-store 测试覆盖此行为。

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

评估

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

把新 issue 发到你的邮箱

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