How to check if an image is already exist in cache (file or memcache) #1919
yatpannggithub
started this conversation in
General
Replies: 2 comments
-
|
I end up just checking disk cache and ignore mem cache for now. So end up using this |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
FWIW I just came to request something similar. I found I was incorrectly using get() without closing the resource. But I don't actually need to open it. I just want to know if it exists, before prefetching images. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When loading images, the designer wanted to use a placeholder BitmapDrawable that is computationally expensive to render (e.g. Bitmap from Blurhash).
I want to avoid creating the bitmap if the full image is already cached (i.e. if placeholder will not be used, there is no point in creating the bitmap) How can I check if a key is cached in memory or not since MemoryCache.Key cannot be created manually.
Beta Was this translation helpful? Give feedback.
All reactions