Baseflow / Baseflow/flutter_cache_manager

Get & list cached files

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

描述

## 🚀 Feature Requests

The default `CacheManager` is great, and automatic caching is great.
But for some files, I need to manually download them to cache, using `downloadFile`, great.
But later, I need to check wether a file is already cached, to decide whether to download it or not.
And I need to do that for hundreds of files.

So it would be very nice to add too methods :
1. A method to check whether a file is cached or not (without providing the File itself), returning a bool.
2. A method to list ALL cached files (like `provider.getAllObjects()` in `CacheStore`), returning a list of keys.

贡献指南

打开贡献指南

调研方向

首先阅读 CacheManager.downloadFile 和 CacheStore provider.getAllObjects() 路径,以了解缓存键和存储文件的表示方式。在决定两个 API 应该放在哪里之前,跟踪现有的缓存查找流程。完成的标准是调用方可以在没有 File 的情况下检查某个键,并获取所有缓存键,同时包含针对数百个文件所要求的行为。

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

评估

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

把新 issue 发到你的邮箱

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