Added the function of clearing cache#40
Conversation
SKProCH
left a comment
There was a problem hiding this comment.
I'm not sure that we actually need the separate interface for clearing the cache. I suppose this is can be just ClearRamCache method (also because users can think about that the interface and method would clean the file cache, for example) and this is would be fine. What do you think?
I created an interface because users might inherit from RamCachedWebImageLoader or implement an AsyncImageLoader. Maybe I should implement cleaning the file cache? |
Yeah, this is valid scenario, and the method in
Also yes, but I suppose that this method is the specialty of the specific loader, instead of being something common.
Yeah, if we want to achieve the "some loaders can clear the cache by itself", this is probably the proper solution. But from the other side, I've actually can't see the case when the App developer wants to clear the file cache. Yeah, the RAM cache clearing is fine, since it consumes the RAM, but the files... I don't sure, and want to listen to your thoughts. |
|
You're right, I was overthinking it, sorry.
I agree.
I agree. If the developers implements their own
If developers do need to clean the file cache, they can solve it through other methods. |
issue: #39