I want to check if image url is contained inside cache. I am using Picasso image loader . 
this is my code
new Picasso.Builder(this).downloader(new OkHttpDownloader(client)).build();
now Picasso.getCache()  does not have get(key) .
though  Cache class internally uses LRUDiskCache but its private
Any ideas??
Jake already answered this on Twitter (https://twitter.com/JakeWharton/status/679403330809028608), but I'm reposting the answer here for visibility.
You could make a request with a network policy of
OFFLINEand if it fails then the image is not in the disk cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With