Baseflow / Baseflow/flutter_cache_manager
Auto Extend the cached file's longevity if the user views it before it expired.
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 1
描述
## Auto Extend Longevity (Maybe Boolean)
an option to auto-extend the cached file's expiration date or longevity.
### Contextualize the feature
It would be great, since, for example, like my application, I want to extend the longevity of a cached file every time a user views it. So, that it wouldn't cost me a lot with database: Bandwidth.
### Describe the feature
Maybe add an option to enable the auto-extend longevity option, so that every time a user views a file its longevity time is extended. For example, I've set my file's longevity to 3 days. If the user views this file on day 2, a day before expiration, the expiration date will be extended by 2 days. Now the file would expire 3 days after the user viewed it. It would continue extending the expiration date and longevity unless a user hasn't viewed this file for 3 consecutive days.
This would help greatly if the application we're implementing it in is a social media type or e-commerce. We can cache the images and auto-extend their expiration date every time a user views them. But please make sure that the file is removed after the expiration date is over.
贡献指南
调研方向
尚未确定任何文件、测试或入口点。首先在仓库中定位缓存过期和驱逐路径,然后明确该选项的 API 及续期语义。完成的标准是:已查看的文件会续期,而未查看的文件会在过期后被移除,并且测试覆盖这两种行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100