Baseflow / Baseflow/flutter_cache_manager

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

Offen
#238 8 Kommentare 18 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
type: documentation
Vorherrschende Sprache
Dart
Sterne
809
Forks
510
Ø Merge
6 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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(),
),
);
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.