Baseflow / Baseflow/flutter_cache_manager
IOFileSystem - problem using the Customize example in the docs for 2.0.0
- Langage dominant
- Dart
- Étoiles
- 809
- Forks
- 510
- Merge moyen
- 6 min
- PR mergées (30 j)
- 1
Description
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(),
),
);
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start with the 2.0.0 Customize documentation and inspect the example around IOFileSystem, CacheManager, and BaseCacheManager. Verify which referenced API is available in 2.0.0 and update the example so it resolves; confirm the documented snippet matches the release.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- dart, flutter
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100