Baseflow / Baseflow/flutter_cache_manager

Support to manually trigger CacheStore._cleanupCache()

オープン
#259 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。