Baseflow / Baseflow/flutter_cache_manager

Get & list cached files

オープン
#434 コメント 1 件 リアクション 12 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
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() のパスを読み、キャッシュキーと保存されたファイルがどのように表現されているかを理解します。2 つの API をどこに配置するか決める前に、既存のキャッシュ検索フローを追跡します。呼び出し元が File なしでキーを確認し、キャッシュされたすべてのキーを取得でき、数百のファイルに対して要求された動作も実現できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile-dev
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。