Baseflow / Baseflow/flutter_cache_manager
Get & list cached files
- Lenguaje dominante
- Dart
- Estrellas
- 809
- Forks
- 510
- Merge medio
- 6 min
- PR fusionados (30 d)
- 1
Descripción
## 🚀 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.
Guía de contribución
Línea de trabajo
Empieza leyendo la ruta de CacheManager.downloadFile y CacheStore provider.getAllObjects() para entender cómo se representan las claves de caché y los archivos almacenados. Sigue el flujo existente de búsqueda en caché antes de decidir dónde deben ubicarse las dos APIs. Se considera terminado cuando los llamadores pueden comprobar una clave sin un File y recuperar todas las claves almacenadas en caché, incluido el comportamiento solicitado para cientos de archivos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- mobile-dev
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100