Baseflow / Baseflow/flutter_cache_manager

Cache eviction

Abierto
#261 0 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
809
Forks
510
Merge medio
6 min
PR fusionados (30 d)
1

Descripción

Hi, thank you for a great project simplifying persistent caching in flutter!

## 🚀 Feature Requests
Eviction based on cache size. It seems the only policy available is number of objects and age.

### Contextualize the feature
I only store immutable objects. No object can ever change. It therefore does not make sense to me to evict objects based on age. I wish that the user can set a maximum allowed storage capacity for the cache, such as 250MB and then fill this up, never evicting until the cache is full. Never evicting could also be important to make offline mode work smoother, though I realize offline support might be outside the scope of this project.

### Describe the feature

### Platforms affected (mark all that apply)
- [X] :iphone: iOS
- [X] :robot: Android

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by locating the existing cache eviction logic for object count and age, then inspect how cache configuration is exposed. Define how a configurable maximum storage capacity should interact with the current policies, and cover the behavior for iOS and Android with tests before considering the feature done.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart, flutter
Área
mobile
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.