Baseflow / Baseflow/flutter_cache_manager
Stale period not working properly
- 主要言語
- Dart
- スター
- 809
- フォーク
- 510
- 平均マージ
- 6分
- マージ済み PR(30日)
- 1
説明
` Im using **flutter_cache_manager: ^3.3.1** and the stale period its not working properly. its not automatically deleting the files.
final cacheManager = CacheManager(
Config(
id,
stalePeriod: Duration(seconds: 60),
maxNrOfCacheObjects: 10,
),
);
try {
final fileStream = cacheManager.getFileStream(_syncMusicUrl);
await for (var response in fileStream) {
if (response is FileInfo) {
_cacheMusicPath = response.file.path;
return true;
} else if (response is DownloadProgress) {}
}
return false;
} catch (error) {
syncSituation.value = "sync";
update();
return false;
} }`
コントリビューションガイド
調査の方向性
Start by reproducing the report with flutter_cache_manager 3.3.1, a 60-second stalePeriod, and getFileStream as shown in the issue. Trace the cache cleanup behavior from this usage and verify that cached files are removed after the configured stale period.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart, flutter
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100