Baseflow / Baseflow/flutter_cache_manager

Use a custom key for caching

未关闭
#495 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

How can I use a custom key for caching instead of the url?
When I use the CachedNetworkImage widget, I want to use the customized cache manager. My thought was to extend CacheManager and override its getSingleFile and other methods. But it doesn't seem to work.

贡献指南

打开贡献指南

调研方向

从 CachedNetworkImage widget 和 issue 中提到的自定义 CacheManager 入口点开始,然后跟踪 getSingleFile 以及其他被重写的方法。确定当前 API 是否支持使用自定义缓存键代替 URL;记录受支持的用法,或明确定义所需的更改,并通过一个可正常工作的自定义键示例展示完成情况。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile-dev
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。