Baseflow / Baseflow/flutter_cache_manager
Store cache in $XDG_CACHE_HOM or ~/.cache
未关闭
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 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() 和 LocalFileSystem() API,并了解 Linux 上如何选择缓存目录。完成的实现应包括可配置的缓存位置,并在适当情况下默认使用 $XDG_CACHE_HOME 或 $HOME/.cache,同时提供说明如何选择自定义位置的文档。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100