Baseflow / Baseflow/flutter_cache_manager
Get & list cached files
- Vorherrschende Sprache
- Dart
- Sterne
- 809
- Forks
- 510
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
## 🚀 Feature Requests
The default `CacheManager` is great, and automatic caching is great.
But for some files, I need to manually download them to cache, using `downloadFile`, great.
But later, I need to check wether a file is already cached, to decide whether to download it or not.
And I need to do that for hundreds of files.
So it would be very nice to add too methods :
1. A method to check whether a file is cached or not (without providing the File itself), returning a bool.
2. A method to list ALL cached files (like `provider.getAllObjects()` in `CacheStore`), returning a list of keys.
Beitragsleitfaden
Rechercherichtung
Start by reading CacheManager.downloadFile and the CacheStore provider.getAllObjects() path to understand how cache keys and stored files are represented. Trace the existing cache lookup flow before deciding where the two APIs belong. Done means callers can check a key without a File and retrieve all cached keys, including the requested behavior for hundreds of files.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- mobile-dev
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100