Baseflow / Baseflow/flutter_cache_manager

Store cache in $XDG_CACHE_HOM or ~/.cache

Aperta
#416 1 commento 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
809
Fork
510
Merge medio
6m
PR unite (30g)
1

Descrizione

On linux, /tmp is most of the time an in memory filesystem, wipe out after a reboot.

So for a long term cache, this does not work, unless you can specify a custom location.
I can't find out how to specify a said custom location. Where is the doc? How do you use FileSystem() or LocalFileSystem() (not really user friendly API)

You should be able to choose where the cache is stored, and a default location better be $XDG_CACHE_HOME if set or else $HOME/.cache on linux.

/tmp is for temporary file not cache

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by tracing the FileSystem() and LocalFileSystem() APIs mentioned in the issue and how the cache directory is selected on Linux. Done should include a configurable cache location and a default of $XDG_CACHE_HOME or $HOME/.cache when appropriate, with documentation explaining how to choose a custom location.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
mobile-dev
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.