Baseflow / Baseflow/flutter_cache_manager

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

Ouverte
#238 8 commentaires 18 réactions 0 personnes assignées Voir sur GitHub
type: documentation
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.