Baseflow / Baseflow/flutter_cache_manager

Auto Extend the cached file's longevity if the user views it before it expired.

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

Beschreibung

## Auto Extend Longevity (Maybe Boolean)

an option to auto-extend the cached file's expiration date or longevity.

### Contextualize the feature
It would be great, since, for example, like my application, I want to extend the longevity of a cached file every time a user views it. So, that it wouldn't cost me a lot with database: Bandwidth.

### Describe the feature
Maybe add an option to enable the auto-extend longevity option, so that every time a user views a file its longevity time is extended. For example, I've set my file's longevity to 3 days. If the user views this file on day 2, a day before expiration, the expiration date will be extended by 2 days. Now the file would expire 3 days after the user viewed it. It would continue extending the expiration date and longevity unless a user hasn't viewed this file for 3 consecutive days.

This would help greatly if the application we're implementing it in is a social media type or e-commerce. We can cache the images and auto-extend their expiration date every time a user views them. But please make sure that the file is removed after the expiration date is over.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es sind keine Dateien, Tests oder Einstiegspunkte identifiziert. Beginne damit, die Pfade für den Ablauf und die Entfernung aus dem Cache im Repository zu finden, und kläre dann die API und die Erneuerungssemantik der Option. Als abgeschlossen gilt die Aufgabe, wenn angezeigte Dateien ihre Lebensdauer erneuern, während nicht angezeigte Dateien nach Ablauf entfernt werden, mit Tests, die beide Verhaltensweisen abdecken.

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.