File and Memory Cahcing - abbashosseini/Vinci GitHub Wiki
File Caching
its work automatically just set back and relax we just explain how its work maybe you don't like how its work whatever
when you load ing file in listView or RecyclerView or just ImageView or whatVere when you loading file from HTTP Vinci cache file in Vinci/Cache and every time you display image Vinci first check in cache folder not exsis and then http request happen and download image from net and of course its gonna cache the file in cache folder BUT for access the api/methods represent the caching
// get caching file as File Object
File file = Vinci
.base(context)
.process()
.cache()
.getFile(uri);
if you wanna remove/delete from cache folder remove() method can do it for you
// delete caching file with http url
boolean isDeleted = Vinci
.base(context)
.process()
.cache()
.remove(url);
some time happen device have memory problem you wanna delete all file clear() method can do that for you
// delete all caching file (internalStorage/Vinci/cache)
Vinci
.base(context)
.process()
.cache()
.clear();