I have added an "isUrlCached" method to the ImageCacheManager API.
This is handy if you want to know if the URL has already been cached or not.
It uses the same "read from cache" logic as "cacheUrl", as I have extracted the "cache/file lookup" logic into a separate function called "getCachedFile".
I have added an "isUrlCached" method to the ImageCacheManager API.
This is handy if you want to know if the URL has already been cached or not.
It uses the same "read from cache" logic as "cacheUrl", as I have extracted the "cache/file lookup" logic into a separate function called "getCachedFile".
Battle-tested this in my own application already.