Java Code Examples for com.facebook.imagepipeline.core.ImagePipeline#evictFromMemoryCache()

The following examples show how to use com.facebook.imagepipeline.core.ImagePipeline#evictFromMemoryCache() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FrescoLoader.java    From ImageLoader with Apache License 2.0 5 votes vote down vote up
@Override
public void clearCacheByUrl(String url) {
    url = MyUtil.appendUrl(url);
    ImagePipeline imagePipeline = Fresco.getImagePipeline();
    Uri uri = Uri.parse(url);
     imagePipeline.evictFromMemoryCache(uri);
    imagePipeline.evictFromDiskCache(uri);
    //imagePipeline.evictFromCache(uri);//这个包含了从内存移除和从硬盘移除
}
 
Example 2
Source File: FrescoLoader.java    From ImageLoader with Apache License 2.0 5 votes vote down vote up
@Override
public void clearMomoryCache(String url) {
    url = MyUtil.appendUrl(url);
    ImagePipeline imagePipeline = Fresco.getImagePipeline();
    Uri uri = Uri.parse(url);
    imagePipeline.evictFromMemoryCache(uri);
}