royB
royB

Reputation: 12977

Android Picasso remove entry from cache

Does anyone know of a way to remove entries from Picasso default Cache / invalidate?

I went over their api (Also Picasso Cache class ) and couldn't find any way of doing it. I'm not interested in skipMemoryCache because most of the time the image Should be loaded from the cache.

Thanks!

Roy

Upvotes: 2

Views: 502

Answers (1)

Sufian
Sufian

Reputation: 6555

Now it's possible to invalidate cache using Picasso.invalidate().

Usage examples:

Picasso.with(context).invalidate(uri);
Picasso.with(context).invalidate(pathString);
Picasso.with(context).invalidate(file);

Upvotes: 2

Related Questions