seatgeek / SGImageCache

A flexible image caching library for image rich iOS applications
BSD 2-Clause "Simplified" License
401 stars 36 forks source link

Invalidating images with url #16

Open LarrrrryT opened 9 years ago

LarrrrryT commented 9 years ago

There is no way to invalidate an image url

sobri909 commented 9 years ago

True. Could pretty easily add methods something like this:

[SGCache removeFileForURL:url];
[SGImageCache removeImageForURL:url];

[SGCache removeFileForCacheKey:cacheKey];
[SGImageCache removeImageForCacheKey:cacheKey];

I don't personally have a need for this yet. But pull requests are welcome ;)