caching - Android - [Glide] Using Disk Cache -
i developing app shows images in recyclerview
of amazing library glide
. number of image gets higher, memory usage. thing is.. when check cache usage of app using es file explorer, says 0kb , weird.. used :
glide.with(context) .load(youtubesharethumbnailurl) .diskcachestrategy(diskcachestrategy.all) .skipmemorycache(true) .centercrop() .into(((objectviewholder) holder).userpostshareyoutubeimage);
am understanding "cache" wrong? think :
memory cache shows on android monitor, in "memory" tab, , disk cache app cache shown in es file explorer.
exceeding memory cache app cause oom error, whereas disk cache doesn't have limit stored in storage.
i'm sorry if don't question right, if tying cache image in disk suggest rid of skipmemorycache(true) bit. , afaik glide loads image once , saves them disk cache further use (if enabled) therefore use of memory (ram) not noticable when load same image or image sets second time :)
Comments
Post a Comment