fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Call any method to empty all cache

Open XiaNaLee opened this issue 11 years ago • 4 comments

empty all cache,what i do?

XiaNaLee avatar Jun 02 '15 03:06 XiaNaLee

Do you mean clearing disk cache, clearing memory cache or both?

plamenko avatar Jun 02 '15 11:06 plamenko

yes...

XiaNaLee avatar Jun 03 '15 03:06 XiaNaLee

    ImagePipelineFactory imagePipelineFactory = Fresco.getImagePipelineFactory();
    imagePipelineFactory.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    imagePipelineFactory.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    imagePipelineFactory.getMainDiskStorageCache().clearAll();
    imagePipelineFactory.getSmallImageDiskStorageCache().clearAll();

tyronen avatar Jun 07 '15 23:06 tyronen

Thank You,I understand。

XiaNaLee avatar Jun 08 '15 13:06 XiaNaLee