Skip to content

Instantly share code, notes, and snippets.

@chethann
Created November 29, 2016 15:18
Show Gist options
  • Save chethann/f674c17f2eb2bbc63557a6912e228c0b to your computer and use it in GitHub Desktop.
Save chethann/f674c17f2eb2bbc63557a6912e228c0b to your computer and use it in GitHub Desktop.
CacheKey cacheKey = DefaultCacheKeyFactory.getInstance().getEncodedCacheKey(ImageRequest.fromUri(imageUrl));
StagingArea stagingArea = StagingArea.getInstance();
EncodedImage result = stagingArea.get(cacheKey);
if(result != null){
result.close();
return true;
}
return ImagePipelineFactory.getInstance().getMainDiskStorageCache()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment