dio_cache_ttl
library
Functions
-
clearExpiredCache(bool showLog, int ttl, [String? folder])
→ Future<void>
-
Clears expired cache files in the specified folder.
-
dioCache(String url, {required Duration ttl, required String extFile, String? folder = "default", bool showLog = false, Dio? dio})
→ Future<File>
-
Downloads and caches a file with the specified extension.
-
downloadFile(bool showLog, String url, String extFile, String folder, int ttl, {Dio? dio})
→ Future<File>
-
Downloads a file, saves it with a unique name, and caches it.
-
getCacheDirectory(String? subFolder)
→ Future<String>
-
-
saveToCache(bool showLog, String url, List<int> data, String extFile, String folder)
→ Future<File>
-
Saves file to cache with a recognizable name.