Baseflow / Baseflow/flutter_cache_manager

IOFileSystem - problem using the Customize example in the docs for 2.0.0

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

描述

I'm upgrading from the previous version to 2.0.0 and trying to follow the new Customize instructions to use CacheManager instead of BaseCacheManager. The reference to IOFileSystem doesn't resolve. What am I doing wrong?

```dart
CacheManager(
Config(
key,
stalePeriod: const Duration(days: 7),
maxNrOfCacheObjects: 60,
repo: JsonCacheInfoRepository(databaseName: key),
fileSystem: IOFileSystem(key),
fileService: HttpFileService(),
),
);
```

贡献指南

打开贡献指南

调研方向

从 2.0.0 的 Customize 文档开始,检查围绕 IOFileSystem、CacheManager 和 BaseCacheManager 的示例。验证所引用的 API 中哪些可在 2.0.0 中使用,并更新示例使其能够解析;确认文档中的代码片段与该版本发布内容一致。

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

评估

技术栈
dart, flutter
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

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