Baseflow / Baseflow/flutter_cache_manager

Store cache in $XDG_CACHE_HOM or ~/.cache

オープン
#416 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
1

説明

On linux, /tmp is most of the time an in memory filesystem, wipe out after a reboot.

So for a long term cache, this does not work, unless you can specify a custom location.
I can't find out how to specify a said custom location. Where is the doc? How do you use FileSystem() or LocalFileSystem() (not really user friendly API)

You should be able to choose where the cache is stored, and a default location better be $XDG_CACHE_HOME if set or else $HOME/.cache on linux.

/tmp is for temporary file not cache

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue で言及されている FileSystem() API と LocalFileSystem() API を追跡し、Linux でキャッシュディレクトリがどのように選択されるかを確認します。実装には、設定可能なキャッシュの場所と、適切な場合に $XDG_CACHE_HOME または $HOME/.cache をデフォルトとして使用することを含め、カスタムの場所の選択方法を説明するドキュメントを追加します。

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

評価

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

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

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