Baseflow / Baseflow/flutter_cache_manager

Get & list cached files

Ouverte
#434 1 commentaire 12 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
809
Forks
510
Merge moyen
6 min
PR mergées (30 j)
1

Description

## 🚀 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart, flutter
Domaine
mobile-dev
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
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.