Baseflow / Baseflow/flutter_cache_manager

Cache eviction

Offen
#261 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
809
Forks
510
Ø Merge
6 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die bestehende Cache-Eviction-Logik für Objektanzahl und Alter zu finden, und untersuche dann, wie die Cache-Konfiguration verfügbar gemacht wird. Lege fest, wie eine konfigurierbare maximale Speicherkapazität mit den aktuellen Richtlinien interagieren soll, und decke das Verhalten für iOS und Android mit Tests ab, bevor du das Feature als abgeschlossen betrachtest.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
mobile
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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