Picasso only has a memory cache.
If the image is in the memory cache, it uses it. Otherwise, when the image is downloaded from its remote source (network, content provider, file system, etc.), it is placed in the memory cache for future searches.
The memory cache is LRU, so the more the image is used, the more likely it is to remain in the cache. Images that are not requested frequently will be evicted over time. There is no eviction over time, and the memory cache does not respect the cache semantics of any HTTP headers (if the image was from the network).
Picasso has no disk cache. It uses an HTTP client (depending on what is used) for 100% of this function. The cache will be installed for both OkHttp and HttpUrlConnection (if used) automatically or if it is already in use.
If you are using a custom HTTP client, the burden of including the cache in you is the caller.
Jake wharton
source share